mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-20 11:01:08 +00:00
Pass through resource view element size in D3D11 pipeline state
* This lets us calculate the offset and visible length when opening a buffer view from a resource binding.
This commit is contained in:
1 parent
e89fab7802
commit
5867d7ada1
4 files changed
+24
-3
No files matched your search
@@ -82,7 +82,7 @@ struct D3D11PipelineState
|
||||
{
|
||||
ResourceView() : View(), Resource(),
|
||||
Format(),
|
||||
Structured(false), BufferStructCount(0),
|
||||
Structured(false), BufferStructCount(0), ElementSize(0),
|
||||
ElementOffset(0), ElementWidth(0),
|
||||
FirstElement(0), NumElements(0),
|
||||
Flags(0),
|
||||
@@ -96,6 +96,7 @@ struct D3D11PipelineState
|
||||
|
||||
bool32 Structured;
|
||||
uint32_t BufferStructCount;
|
||||
uint32_t ElementSize;
|
||||
|
||||
// Buffer (SRV)
|
||||
uint32_t ElementOffset;
|
||||
|
||||
Reference in new issue
Block a user