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:
baldurk
2021-02-08 13:58:51 +00:00
parent 6eab349dd5
commit 327a9fdced
@@ -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