libobs/graphics: Add gs_is_monitor_hdr

Only Windows is implemented for now. Mac/Linux return false for now.
This commit is contained in:
jpark37
2022-03-09 21:41:23 -08:00
parent abddfead2f
commit eccde48926
9 changed files with 44 additions and 0 deletions

View File

@@ -310,6 +310,11 @@ void device_present(gs_device_t *device)
[device->plat->context makeCurrentContext];
}
bool device_is_monitor_hdr(gs_device_t *device, void *monitor)
{
return false;
}
void gl_getclientsize(const struct gs_swap_chain *swap, uint32_t *width,
uint32_t *height)
{

View File

@@ -124,6 +124,11 @@ extern void device_present(gs_device_t *device)
gl_vtable->device_present(device);
}
extern bool device_is_monitor_hdr(gs_device_t *device, void *monitor)
{
return false;
}
extern struct gs_texture *device_texture_create_from_dmabuf(
gs_device_t *device, unsigned int width, unsigned int height,
uint32_t drm_format, enum gs_color_format color_format,

View File

@@ -598,6 +598,11 @@ extern void gl_getclientsize(const struct gs_swap_chain *swap, uint32_t *width,
}
}
EXPORT bool device_is_monitor_hdr(gs_device_t *device, void *monitor)
{
return false;
}
EXPORT bool device_gdi_texture_available(void)
{
return false;