Skip to content
Snippets Groups Projects

vkd3d: Report D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD/STORE for UAV formats when supported.

Merged Henri Verbeet requested to merge hverbeet/vkd3d:for_upstream_0 into master
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -2930,7 +2930,14 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device5
if (image_features & VK_FORMAT_FEATURE_BLIT_SRC_BIT)
data->Support1 |= D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE;
if (image_features & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT)
{
data->Support1 |= D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW;
if (device->vk_info.uav_read_without_format)
data->Support2 |= D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD;
/* We effectively require shaderStorageImageWriteWithoutFormat,
* so we can just report UAV_TYPED_STORE unconditionally. */
data->Support2 |= D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE;
}
if (image_features & VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT)
data->Support2 |= D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD
Loading