Removed names of unused function parameters.

This commit is contained in:
Bill Hollings 2017-01-07 15:55:04 -05:00
parent 91367799b0
commit e6dab816b0
2 changed files with 10 additions and 11 deletions

View File

@ -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. // 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. // 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 is_proj, bool has_array_offsets, bool has_offset, bool has_grad,
bool has_lod, bool has_dref) bool has_lod, bool)
{ {
string fname; 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. // 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, string CompilerGLSL::to_function_args(uint32_t img, const SPIRType &, bool, bool,
bool is_proj, uint32_t coord, uint32_t coord_components, uint32_t dref, 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 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) uint32_t bias, uint32_t comp, uint32_t sample, bool *p_forward)
{ {

View File

@ -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. // 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, string CompilerMSL::to_function_name(uint32_t img, const SPIRType &, bool is_fetch, bool is_gather,
bool has_array_offsets, bool has_offset, bool has_grad, bool has_lod, bool, bool, bool, bool, bool, bool has_dref)
bool has_dref)
{ {
// Texture reference // Texture reference
string fname = to_expression(img) + "."; 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. // 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, string CompilerMSL::to_function_args(uint32_t img, const SPIRType &imgtype, bool is_fetch, bool, bool is_proj,
uint32_t coord, uint32_t coord_components, uint32_t dref, uint32_t grad_x, uint32_t coord, uint32_t, uint32_t dref, uint32_t grad_x, uint32_t grad_y,
uint32_t grad_y, uint32_t lod, uint32_t coffset, uint32_t offset, uint32_t bias, uint32_t lod, uint32_t coffset, uint32_t offset, uint32_t bias, uint32_t comp,
uint32_t comp, uint32_t sample, bool *p_forward) uint32_t, bool *p_forward)
{ {
string farg_str = to_sampler_expression(img); string farg_str = to_sampler_expression(img);