libobs/graphics, libobs-d3d11: Add P010 support

This commit is contained in:
jpark37
2022-03-20 17:22:13 -07:00
committed by Jim
parent a147315f33
commit fee3703f40
9 changed files with 200 additions and 48 deletions
+2 -2
View File
@@ -43,12 +43,12 @@ gs_stage_surface::gs_stage_surface(gs_device_t *device, uint32_t width,
}
gs_stage_surface::gs_stage_surface(gs_device_t *device, uint32_t width,
uint32_t height)
uint32_t height, bool p010)
: gs_obj(device, gs_type::gs_stage_surface),
width(width),
height(height),
format(GS_UNKNOWN),
dxgiFormat(DXGI_FORMAT_NV12)
dxgiFormat(p010 ? DXGI_FORMAT_P010 : DXGI_FORMAT_NV12)
{
HRESULT hr;