From e6dab816b0f549b6e9fbbdd200418beef4a37a86 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Sat, 7 Jan 2017 15:55:04 -0500 Subject: [PATCH] Removed names of unused function parameters. --- spirv_glsl.cpp | 8 ++++---- spirv_msl.cpp | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 5538cf16..b706eecf 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -2558,9 +2558,9 @@ void CompilerGLSL::emit_texture_op(const Instruction &i) // Returns the function name for a texture sampling function for the specified image and sampling characteristics. // For some subclasses, the function is a method on the specified image. -string CompilerGLSL::to_function_name(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool is_gather, +string CompilerGLSL::to_function_name(uint32_t, const SPIRType &imgtype, bool is_fetch, bool is_gather, bool is_proj, bool has_array_offsets, bool has_offset, bool has_grad, - bool has_lod, bool has_dref) + bool has_lod, bool) { string fname; @@ -2589,8 +2589,8 @@ string CompilerGLSL::to_function_name(uint32_t img, const SPIRType &imgtype, boo } // Returns the function args for a texture sampling function for the specified image and sampling characteristics. -string CompilerGLSL::to_function_args(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool is_gather, - bool is_proj, uint32_t coord, uint32_t coord_components, uint32_t dref, +string CompilerGLSL::to_function_args(uint32_t img, const SPIRType &, bool, bool, + bool, uint32_t coord, uint32_t coord_components, uint32_t dref, uint32_t grad_x, uint32_t grad_y, uint32_t lod, uint32_t coffset, uint32_t offset, uint32_t bias, uint32_t comp, uint32_t sample, bool *p_forward) { diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 0475b802..369c1701 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -699,9 +699,8 @@ void CompilerMSL::emit_function_prototype(SPIRFunction &func, bool is_decl) } // Returns the texture sampling function string for the specified image and sampling characteristics. -string CompilerMSL::to_function_name(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool is_gather, bool is_proj, - bool has_array_offsets, bool has_offset, bool has_grad, bool has_lod, - bool has_dref) +string CompilerMSL::to_function_name(uint32_t img, const SPIRType &, bool is_fetch, bool is_gather, + bool, bool, bool, bool, bool, bool has_dref) { // Texture reference string fname = to_expression(img) + "."; @@ -721,10 +720,10 @@ string CompilerMSL::to_function_name(uint32_t img, const SPIRType &imgtype, bool } // Returns the function args for a texture sampling function for the specified image and sampling characteristics. -string CompilerMSL::to_function_args(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool is_gather, bool is_proj, - uint32_t coord, uint32_t coord_components, uint32_t dref, uint32_t grad_x, - uint32_t grad_y, uint32_t lod, uint32_t coffset, uint32_t offset, uint32_t bias, - uint32_t comp, uint32_t sample, bool *p_forward) +string CompilerMSL::to_function_args(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool, bool is_proj, + uint32_t coord, uint32_t, uint32_t dref, uint32_t grad_x, uint32_t grad_y, + uint32_t lod, uint32_t coffset, uint32_t offset, uint32_t bias, uint32_t comp, + uint32_t, bool *p_forward) { string farg_str = to_sampler_expression(img);