From 591e765bea317f6380ccbe0037f5b2b9d2b30cec Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 7 Oct 2026 13:52:02 +0100 Subject: [PATCH] Change MakeCompositePointer to take a const array of indices --- renderdoc/driver/shaders/spirv/spirv_debug.h | 2 +- renderdoc/driver/shaders/spirv/spirv_debug_setup.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;