obs-studio/libobs-d3d11
Kurt Kartaltepe 3e49e89611 libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters
This adds gs_enum_adapters and gs_get_adapter_count to the opengl
backend and promotes these to multiplatform graphics functions.

However we need to make an internal device change, device_enum_adapters
must pass in the current device on opengl to ensure that adapter #0 is
the display adapter. We do this to avoid changes to plugins already
checking against obs_video_info.adapter which is always 0 and expected
to be the device OBS was initialized on.

The actual implementation reports the dri render node (or /Software).
This allows plugins to query non-video features of the adapters like
VA-API/NVENC/etc or other cross device functionality. `/Software` is
chosen to avoid opening random files in the current directory if its
passed along as a file path like the regular dri render nodes.
2024-01-27 17:51:33 -06:00
..
cmake cmake: Add changes for CMake build framework 3.0 2023-06-29 10:11:32 -04:00
CMakeLists.txt libobs-d3d11: Remove unnecessary quoting of CMake generator expression 2023-12-19 17:59:44 -05:00
d3d11-duplicator.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-indexbuffer.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-rebuild.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-samplerstate.cpp clang-format: Set AllowAllConstructorInitializersOnNextLine to false 2023-07-15 16:14:55 -07:00
d3d11-shader.cpp libobs-d3d11: Add checksum to shader cache 2023-11-20 04:32:56 -06:00
d3d11-shaderprocessor.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-shaderprocessor.hpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-stagesurf.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-subsystem.cpp libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
d3d11-subsystem.hpp libobs-d3d11: Remove new/delete replacements 2024-01-11 04:02:31 -06:00
d3d11-texture2d.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-texture3d.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-vertexbuffer.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00
d3d11-zstencilbuffer.cpp Update copyrights/names 2023-05-20 01:31:18 -07:00