From 9d05ab992e99e710eb1dc6555021a67eb4caf3d1 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 18 Oct 2019 15:35:54 +0100 Subject: [PATCH] Handle reflecting runtime arrays of arrays --- renderdoc/driver/shaders/spirv/spirv_reflect.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/driver/shaders/spirv/spirv_reflect.cpp b/renderdoc/driver/shaders/spirv/spirv_reflect.cpp index e488e7e41..2d97ca881 100644 --- a/renderdoc/driver/shaders/spirv/spirv_reflect.cpp +++ b/renderdoc/driver/shaders/spirv/spirv_reflect.cpp @@ -1866,6 +1866,9 @@ void Reflector::MakeConstantBlockVariables(const DataType &structType, uint32_t { uint32_t relativeOffset = 0; + if(arraySize == ~0U) + arraySize = 1; + cblock.resize(arraySize); for(uint32_t i = 0; i < arraySize; i++) {