mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 08:08:50 +00:00
Bounds check input attributes against input array size we have
This commit is contained in:
1 file changed
+11
@@ -1495,6 +1495,17 @@ void VulkanReplay::FetchVSOut(uint32_t eventId, VulkanRenderState &state)
|
||||
m_pDriver->GetDeviceProps().limits.maxPerStageDescriptorStorageBuffers - 2;
|
||||
}
|
||||
|
||||
for(size_t i = 0; i < refl->inputSignature.size(); i++)
|
||||
{
|
||||
if(refl->inputSignature[i].regIndex >= MeshOutputBufferArraySize)
|
||||
{
|
||||
RDCERR("Input %s refers to attribute %u which is out of our array size %u",
|
||||
refl->inputSignature[i].varName, refl->inputSignature[i].regIndex,
|
||||
MeshOutputBufferArraySize);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
VkGraphicsPipelineCreateInfo pipeCreateInfo;
|
||||
|
||||
// get pipeline create info
|
||||
|
||||
Reference in new issue
Block a user