1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[d3d11] Fix structured buffer view validation

This commit is contained in:
Philip Rebohle 2018-08-10 02:39:35 +02:00
parent 40050e4e3f
commit 82c891b1fb
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -74,6 +74,10 @@ namespace dxvk {
if ((m_buffer->info().usage & usage) != usage)
return false;
// Structured buffer views use no format
if (Format == DXGI_FORMAT_UNKNOWN)
return (m_desc.MiscFlags & D3D11_RESOURCE_MISC_BUFFER_STRUCTURED) != 0;
// Check whether the given combination of buffer view
// type and view format is supported by the device
DXGI_VK_FORMAT_INFO viewFormat = m_device->LookupFormat(Format, DXGI_VK_FORMAT_MODE_ANY);