obs-studio/libobs/graphics
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
..
libnsgif libobs: Add license declaration files 2023-09-19 13:35:49 -04:00
axisang.c Update copyrights/names 2023-05-20 01:31:18 -07:00
axisang.h Update copyrights/names 2023-05-20 01:31:18 -07:00
basemath.hpp first commit 2013-09-30 19:37:13 -07:00
bounds.c Update copyrights/names 2023-05-20 01:31:18 -07:00
bounds.h Update copyrights/names 2023-05-20 01:31:18 -07:00
device-exports.h libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
effect-parser.c libobs: Fix errors for gs_effect_create 2023-10-06 10:51:15 -06:00
effect-parser.h libobs/graphics: Remove undefined function declarations 2023-07-01 00:39:13 -07:00
effect.c libobs/graphics: Define DARRAY macro types used in effect 2023-07-01 00:39:13 -07:00
effect.h libobs/graphics: Remove undefined function declarations 2023-07-01 00:39:13 -07:00
graphics-ffmpeg.c libobs: Remove legacy FFmpeg compatibility 2023-07-12 15:57:43 -04:00
graphics-imports.c libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
graphics-internal.h libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
graphics-magick.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
graphics.c libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
graphics.h libobs,libobs-opengl,libobs-d3d11: Add opengl gs_enum_adapters 2024-01-27 17:51:33 -06:00
half.h Update copyrights/names 2023-05-20 01:31:18 -07:00
image-file.c Update copyrights/names 2023-05-20 01:31:18 -07:00
image-file.h Update copyrights/names 2023-05-20 01:31:18 -07:00
input.h Update copyrights/names 2023-05-20 01:31:18 -07:00
math-defs.h Update copyrights/names 2023-05-20 01:31:18 -07:00
math-extra.c Update copyrights/names 2023-05-20 01:31:18 -07:00
math-extra.h Update copyrights/names 2023-05-20 01:31:18 -07:00
matrix3.c Update copyrights/names 2023-05-20 01:31:18 -07:00
matrix3.h Update copyrights/names 2023-05-20 01:31:18 -07:00
matrix4.c Update copyrights/names 2023-05-20 01:31:18 -07:00
matrix4.h Update copyrights/names 2023-05-20 01:31:18 -07:00
plane.c Update copyrights/names 2023-05-20 01:31:18 -07:00
plane.h Update copyrights/names 2023-05-20 01:31:18 -07:00
quat.c Update copyrights/names 2023-05-20 01:31:18 -07:00
quat.h Update copyrights/names 2023-05-20 01:31:18 -07:00
shader-parser.c Update copyrights/names 2023-05-20 01:31:18 -07:00
shader-parser.h Update copyrights/names 2023-05-20 01:31:18 -07:00
srgb.h Update copyrights/names 2023-05-20 01:31:18 -07:00
texture-render.c Update copyrights/names 2023-05-20 01:31:18 -07:00
vec2.c Update copyrights/names 2023-05-20 01:31:18 -07:00
vec2.h Update copyrights/names 2023-05-20 01:31:18 -07:00
vec3.c Update copyrights/names 2023-05-20 01:31:18 -07:00
vec3.h Update copyrights/names 2023-05-20 01:31:18 -07:00
vec4.c Update copyrights/names 2023-05-20 01:31:18 -07:00
vec4.h Update copyrights/names 2023-05-20 01:31:18 -07:00