mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 13:21:45 +00:00
Don't call GetByteSize() if format is unknown, just assume 1 byte
This commit is contained in:
1 parent
09238f515f
commit
766ab41663
1 file changed
+1
-1
@@ -747,7 +747,7 @@ D3D11PipelineState D3D11Replay::MakePipelineState()
|
||||
view.Structured = false;
|
||||
view.BufferStructCount = 0;
|
||||
|
||||
view.ElementSize = GetByteSize(1, 1, 1, desc.Format, 0);
|
||||
view.ElementSize = desc.Format == DXGI_FORMAT_UNKNOWN ? 1 : GetByteSize(1, 1, 1, desc.Format, 0);
|
||||
|
||||
if(desc.ViewDimension == D3D11_UAV_DIMENSION_BUFFER &&
|
||||
(desc.Buffer.Flags & (D3D11_BUFFER_UAV_FLAG_APPEND|D3D11_BUFFER_UAV_FLAG_COUNTER)))
|
||||
|
||||
Reference in new issue
Block a user