[host] dxgi: check for invalid usage of d3d12 & downsampling

This commit is contained in:
Geoffrey McRae 2022-05-04 10:23:42 +10:00
parent c8a5293645
commit 8682ec207e

View File

@ -91,6 +91,14 @@ static bool d3d12_create(struct DXGIInterface * intf)
if (!d3d12) if (!d3d12)
return false; return false;
if (dxgi->downsampleLevel > 0)
{
DEBUG_WARN("The D3D12 backend does not support downsampling yet");
dxgi->downsampleLevel = 0;
dxgi->targetWidth = dxgi->width;
dxgi->targetHeight = dxgi->height;
}
if (dxgi->debug) if (dxgi->debug)
{ {
D3D12GetDebugInterface_t D3D12GetDebugInterface = (D3D12GetDebugInterface_t) D3D12GetDebugInterface_t D3D12GetDebugInterface = (D3D12GetDebugInterface_t)