diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index c46639b..d515c37 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -5820,7 +5820,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction) { uint32_t result_type = ops[0]; uint32_t id = ops[1]; - const auto * const elems = &ops[2]; + const auto *const elems = &ops[2]; length -= 2; bool forward = true; diff --git a/spirv_hlsl.cpp b/spirv_hlsl.cpp index a55930c..b08b9e0 100644 --- a/spirv_hlsl.cpp +++ b/spirv_hlsl.cpp @@ -1997,7 +1997,8 @@ void CompilerHLSL::emit_function_prototype(SPIRFunction &func, uint64_t return_f // Flatten a combined sampler to two separate arguments in modern HLSL. auto &arg_type = get(arg.type); - if (hlsl_options.shader_model > 30 && arg_type.basetype == SPIRType::SampledImage && arg_type.image.dim != DimBuffer) + if (hlsl_options.shader_model > 30 && arg_type.basetype == SPIRType::SampledImage && + arg_type.image.dim != DimBuffer) { // Manufacture automatic sampler arg for SampledImage texture decl += ", ";