mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
libobs/graphics, libobs-d3d11: Add P010 support
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user