mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't assume 4-byte stride for typed buffer loads/stores in DXBC
* Newer D3D versions support different strides including 2-byte, so we fetch the stride from the view format.
This commit is contained in:
@@ -3320,6 +3320,9 @@ void ThreadState::StepNext(ShaderDebugState *state, DebugAPIWrapper *apiWrapper,
|
||||
numElems = uavIter->second.numElements;
|
||||
fmt = uavIter->second.format;
|
||||
}
|
||||
|
||||
if(op.operation == OPCODE_LD_UAV_TYPED || op.operation == OPCODE_STORE_UAV_TYPED)
|
||||
stride = fmt.Stride();
|
||||
}
|
||||
|
||||
// indexing for raw views is in bytes, but firstElement/numElements is in format-sized
|
||||
|
||||
Reference in New Issue
Block a user