mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
671add4035
With SM5.1 and D3D12, constant buffer arrays can be declared which are treated as an array of resources on the shader side, and a simple collection of descriptors on the D3D12 side. DXBCDebug::GlobalState handles the bridge between these by storing each array resource as a nested ShaderVariable struct. Accessing the data for instructions traverses the structure similarly. The shader viewer handles nested resources and displays them in the appropriate tree view. In the pipeline viewer, descriptors for CB arrays now indicate the array index and correctly handle buffer offsets for viewing.