diff --git a/spirv_hlsl.cpp b/spirv_hlsl.cpp index 8b3664ee..6242ac33 100644 --- a/spirv_hlsl.cpp +++ b/spirv_hlsl.cpp @@ -1054,6 +1054,7 @@ void CompilerHLSL::emit_specialization_constants() auto &type = get(c.basetype); auto name = to_name(c.self); statement("static const ", variable_decl(type, name), " = ", constant_op_expression(c), ";"); + emitted = true; } }