From c03b2e2fb0e73dbc86e53f6069ead6018e4a4d1a Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Mon, 29 Sep 2025 17:04:02 +0100 Subject: [PATCH] Remove unused methods from GpuMathOperation & GpuSampleGatherOperation Clear() methods are not used --- renderdoc/driver/shaders/spirv/spirv_debug.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/renderdoc/driver/shaders/spirv/spirv_debug.h b/renderdoc/driver/shaders/spirv/spirv_debug.h index 4bb0f1360..9e0629cd6 100644 --- a/renderdoc/driver/shaders/spirv/spirv_debug.h +++ b/renderdoc/driver/shaders/spirv/spirv_debug.h @@ -222,13 +222,6 @@ private: struct GpuMathOperation { - void Clear() - { - workgroupIndex = 0; - op = GLSLstd450::Invalid; - paramVars.clear(); - result = NULL; - } uint32_t workgroupIndex; GLSLstd450 op; rdcarray paramVars; @@ -237,18 +230,6 @@ struct GpuMathOperation struct GpuSampleGatherOperation { - void Clear() - { - workgroupIndex = 0; - opcode = Op::Max; - texType = DebugAPIWrapper::TextureType::Float_Texture; - imageBind = ShaderBindIndex(); - samplerBind = ShaderBindIndex(); - uv = ddxCalc = ddyCalc = compare = ShaderVariable(); - gatherChannel = GatherChannel::Red; - operands.setNone(); - result = NULL; - } uint32_t workgroupIndex; Op opcode; DebugAPIWrapper::TextureType texType;