mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +00:00
Vulkan PipelineState search for vertex attributes by register location
Closes #3379
This commit is contained in:
@@ -1841,12 +1841,14 @@ void VulkanPipelineStateViewer::setState()
|
||||
|
||||
if(state.vertexShader.resourceId != ResourceId())
|
||||
{
|
||||
uint32_t attrib = a.location;
|
||||
|
||||
if(attrib < state.vertexShader.reflection->inputSignature.size())
|
||||
for(SigParameter &sigParam : state.vertexShader.reflection->inputSignature)
|
||||
{
|
||||
name = state.vertexShader.reflection->inputSignature[attrib].varName;
|
||||
usedSlot = true;
|
||||
if(sigParam.regIndex == a.location)
|
||||
{
|
||||
name = sigParam.varName;
|
||||
usedSlot = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user