Run format_all.sh.
This commit is contained in:
parent
4e7777c443
commit
2edee351f0
@ -1748,9 +1748,8 @@ void CompilerGLSL::emit_interface_block(const SPIRVariable &var)
|
||||
if (var.storage == StorageClassOutput && var.initializer)
|
||||
{
|
||||
auto &entry_func = this->get<SPIRFunction>(ir.default_entry_point);
|
||||
entry_func.fixup_hooks_in.push_back([&]() {
|
||||
statement(to_name(var.self), " = ", to_expression(var.initializer), ";");
|
||||
});
|
||||
entry_func.fixup_hooks_in.push_back(
|
||||
[&]() { statement(to_name(var.self), " = ", to_expression(var.initializer), ";"); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -868,9 +868,8 @@ void CompilerMSL::add_plain_variable_to_interface_block(StorageClass storage, co
|
||||
|
||||
if (var.storage == StorageClassOutput && var.initializer != 0)
|
||||
{
|
||||
entry_func.fixup_hooks_in.push_back([=, &var]() {
|
||||
statement(qual_var_name, " = ", to_expression(var.initializer), ";");
|
||||
});
|
||||
entry_func.fixup_hooks_in.push_back(
|
||||
[=, &var]() { statement(qual_var_name, " = ", to_expression(var.initializer), ";"); });
|
||||
}
|
||||
|
||||
// Copy the variable location from the original variable to the member
|
||||
|
Loading…
Reference in New Issue
Block a user