mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Use the right (updated during reading) set of descriptor sets
This commit is contained in:
@@ -2421,7 +2421,8 @@ void WrappedVulkan::AddUsage(VulkanDrawcallTreeNode &drawNode)
|
||||
if(sh.module == ResourceId()) continue;
|
||||
|
||||
// 5 is the compute shader's index (VS, TCS, TES, GS, FS, CS)
|
||||
const vector<ResourceId> &descSets = (shad == 5 ? state.computeDescSets : state.graphicsDescSets);
|
||||
const vector<VulkanRenderState::Pipeline::DescriptorAndOffsets> &descSets =
|
||||
(shad == 5 ? m_RenderState.compute.descSets : m_RenderState.graphics.descSets);
|
||||
|
||||
RDCASSERT(sh.mapping);
|
||||
|
||||
@@ -2457,7 +2458,7 @@ void WrappedVulkan::AddUsage(VulkanDrawcallTreeNode &drawNode)
|
||||
continue;
|
||||
}
|
||||
|
||||
DescriptorSetInfo &descset = m_DescriptorSetState[ descSets[bindset] ];
|
||||
DescriptorSetInfo &descset = m_DescriptorSetState[ descSets[bindset].descSet ];
|
||||
DescSetLayout &layout = c.m_DescSetLayout[ descset.layout ];
|
||||
|
||||
if(layout.bindings.empty())
|
||||
|
||||
@@ -327,8 +327,6 @@ private:
|
||||
struct CmdBufferState
|
||||
{
|
||||
ResourceId pipeline;
|
||||
vector<ResourceId> graphicsDescSets;
|
||||
vector<ResourceId> computeDescSets;
|
||||
|
||||
uint32_t idxWidth;
|
||||
ResourceId ibuffer;
|
||||
|
||||
Reference in New Issue
Block a user