itsmikethetech / Virtual-Display-Driver

Add virtual monitors to your windows 10/11 device! Works with VR, OBS, Sunshine, and/or any desktop sharing software.
1.94k stars 89 forks source link

No OpenGL Support? #81

Open chrisneedsbeer opened 1 month ago

chrisneedsbeer commented 1 month ago

I've been having issues when attempting to use OpenGL and their respective shaders. DirectX works fine. Is this something which is viable to support?

zjoasan commented 1 month ago

I'm unsure howto. DirectX is built in, since the driver is based on a DirectX framework. To get OpenGL support, we would need to add a OGL framework to the driver, which is above my pay grade (and since it is, i might be terrible wrong too). Hope this explains a abit for you, and give you an rough estimate on how far off such addition would be.

zjoasan commented 1 month ago

After a few hours of researching, what do you mean with OpenGL-support? This is is a Dx implementation, ex the hardware needs to have dx support in order to get it to display on the VDD, It uses internal functions of DX, getting the same functions of OpenGL, which is a standard of accelerating 3d content, Dx is so much more then just 3D-content. So in short what I get from your Thread starter post, is that your GPU accel. OpenGL, but the Fx connection to VDD, isn't gettng anyoutput??

If OpenGL would be implemnented, it would use CPU-cycles to do the shader bits. I can see usefull cases for it, but I want t o make sure i understand you.

mirh commented 1 month ago

WDDM and directx are two different things, to be honest. Though it's true that just about everything happens inside dxgkrnl.

Then.. Even opengl should eventually go through it? If it doesn't, it's probably because gpu vendors may be rolling out their own backend for certain operations, perhaps to maintain whatever 30 years old conventions (though I believe it's pretty much granted to work in WSL).

Does it work with Vulkan programs? And does it change anything if you enable DXGI swapchain presentation?