diff --git a/renderdoc/driver/shaders/spirv/spirv_debug.h b/renderdoc/driver/shaders/spirv/spirv_debug.h index 6dc2d7685..acc52c3b0 100644 --- a/renderdoc/driver/shaders/spirv/spirv_debug.h +++ b/renderdoc/driver/shaders/spirv/spirv_debug.h @@ -736,7 +736,7 @@ public: bool ArePointersAndEqual(const ShaderVariable &a, const ShaderVariable &b) const; DeviceOpResult WriteThroughPointer(ShaderVariable &ptr, const ShaderVariable &val) const; ShaderVariable MakeCompositePointer(const ShaderVariable &base, Id id, - rdcarray &indices) const; + const rdcarray &indices) const; DebugAPIWrapper *GetAPIWrapper() const; uint32_t GetNumInstructions() const { return (uint32_t)instructionOffsets.size(); } diff --git a/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp b/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp index 8f2b72c9f..da78e1687 100644 --- a/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp +++ b/renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp @@ -3318,7 +3318,7 @@ ShaderVariable Debugger::MakePointerVariable(Id id, const ShaderVariable *v, uin } ShaderVariable Debugger::MakeCompositePointer(const ShaderVariable &base, Id id, - rdcarray &indices) const + const rdcarray &indices) const { const ShaderVariable *leaf = &base;