vkd3d: Handle D3D12_FEATURE_D3D12_OPTIONS13 in CheckFeatureSupport().

This commit is contained in:
Conor McCarthy 2024-02-09 23:39:20 +10:00 committed by Alexandre Julliard
parent 7b4e731aa5
commit aac3916fcf
Notes: Alexandre Julliard 2024-02-13 23:11:59 +01: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/644

View File

@ -3488,6 +3488,32 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device7
return S_OK;
}
case D3D12_FEATURE_D3D12_OPTIONS13:
{
D3D12_FEATURE_DATA_D3D12_OPTIONS13 *data = feature_data;
if (feature_data_size != sizeof(*data))
{
WARN("Invalid size %u.\n", feature_data_size);
return E_INVALIDARG;
}
data->UnrestrictedBufferTextureCopyPitchSupported = FALSE;
data->UnrestrictedVertexElementAlignmentSupported = FALSE;
data->InvertedViewportHeightFlipsYSupported = FALSE;
data->InvertedViewportDepthFlipsZSupported = FALSE;
data->TextureCopyBetweenDimensionsSupported = FALSE;
data->AlphaBlendFactorSupported = FALSE;
TRACE("Unrestricted buffer-texture copy pitch %#x.\n", data->UnrestrictedBufferTextureCopyPitchSupported);
TRACE("Unrestricted vertex element alignment %#x.\n", data->UnrestrictedVertexElementAlignmentSupported);
TRACE("Inverted viewport height flips Y %#x.\n", data->InvertedViewportHeightFlipsYSupported);
TRACE("Inverted viewport depth flips Z %#x.\n", data->InvertedViewportDepthFlipsZSupported);
TRACE("Texture copy between dimensions %#x.\n", data->TextureCopyBetweenDimensionsSupported);
TRACE("Alpha blend factor support %#x.\n", data->AlphaBlendFactorSupported);
return S_OK;
}
default:
FIXME("Unhandled feature %#x.\n", feature);
return E_NOTIMPL;