mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Implement support for D3D12_FEATURE_D3D12_OPTIONS5.
Signed-off-by: Conor McCarthy <conor.mccarthy.444@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
d5ad90a81e
commit
7d47f2323e
@@ -1362,6 +1362,10 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
|
||||
* VK_KHR_shader_float16_int8. */
|
||||
device->feature_options4.Native16BitShaderOpsSupported = FALSE;
|
||||
|
||||
device->feature_options5.SRVOnlyTiledResourceTier3 = FALSE;
|
||||
device->feature_options5.RenderPassesTier = D3D12_RENDER_PASS_TIER_0;
|
||||
device->feature_options5.RaytracingTier = D3D12_RAYTRACING_TIER_NOT_SUPPORTED;
|
||||
|
||||
if ((vr = VK_CALL(vkEnumerateDeviceExtensionProperties(physical_device, NULL, &count, NULL))) < 0)
|
||||
{
|
||||
ERR("Failed to enumerate device extensions, vr %d.\n", vr);
|
||||
@@ -2949,6 +2953,24 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
case D3D12_FEATURE_D3D12_OPTIONS5:
|
||||
{
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS5 *data = feature_data;
|
||||
|
||||
if (feature_data_size != sizeof(*data))
|
||||
{
|
||||
WARN("Invalid size %u.\n", feature_data_size);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
*data = device->feature_options5;
|
||||
|
||||
TRACE("SRV tiled resource tier 3 only %#x.\n", data->SRVOnlyTiledResourceTier3);
|
||||
TRACE("Render pass tier %#x.\n", data->RenderPassesTier);
|
||||
TRACE("Ray tracing tier %#x.\n", data->RaytracingTier);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
default:
|
||||
FIXME("Unhandled feature %#x.\n", feature);
|
||||
return E_NOTIMPL;
|
||||
|
@@ -1135,6 +1135,7 @@ struct d3d12_device
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS2 feature_options2;
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS3 feature_options3;
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS4 feature_options4;
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS5 feature_options5;
|
||||
|
||||
struct vkd3d_vulkan_info vk_info;
|
||||
|
||||
|
Reference in New Issue
Block a user