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:
parent
40050e4e3f
commit
82c891b1fb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user