mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
Run format_all.sh.
This commit is contained in:
parent
c643addacd
commit
fb7181bff1
@ -1584,11 +1584,9 @@ void CompilerMSL::emit_specialization_constants()
|
||||
{
|
||||
uint32_t constant_id = get_decoration(c.self, DecorationSpecId);
|
||||
// Only scalar, non-composite values can be function constants.
|
||||
statement("constant ", sc_type_name, " ", sc_tmp_name, " [[function_constant(",
|
||||
constant_id, ")]];");
|
||||
statement("constant ", sc_type_name, " ", sc_tmp_name, " [[function_constant(", constant_id, ")]];");
|
||||
statement("constant ", sc_type_name, " ", sc_name, " = is_function_constant_defined(", sc_tmp_name,
|
||||
") ? ",
|
||||
sc_tmp_name, " : ", constant_expression(c), ";");
|
||||
") ? ", sc_tmp_name, " : ", constant_expression(c), ";");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user