vkd3d: Handle D3D12_FEATURE_D3D12_OPTIONS14 in CheckFeatureSupport().

This commit is contained in:
Giovanni Mascellani
2024-05-08 11:15:59 +02:00
committed by Alexandre Julliard
parent fb20639eb4
commit 761ee1e487
Notes: Alexandre Julliard 2024-05-13 22:57:23 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/861
2 changed files with 27 additions and 0 deletions

View File

@@ -3919,6 +3919,25 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device9
return S_OK;
}
case D3D12_FEATURE_D3D12_OPTIONS14:
{
D3D12_FEATURE_DATA_D3D12_OPTIONS14 *data = feature_data;
if (feature_data_size != sizeof(*data))
{
WARN("Invalid size %u.\n", feature_data_size);
}
data->AdvancedTextureOpsSupported = FALSE;
data->WriteableMSAATexturesSupported = FALSE;
data->IndependentFrontAndBackStencilRefMaskSupported = FALSE;
TRACE("Advanced texture ops %#x.\n", data->AdvancedTextureOpsSupported);
TRACE("Writeable MSAA textures %#x.\n", data->WriteableMSAATexturesSupported);
TRACE("Independent front and back stencil ref mask %#x.\n", data->IndependentFrontAndBackStencilRefMaskSupported);
return S_OK;
}
default:
FIXME("Unhandled feature %#x.\n", feature);
return E_NOTIMPL;