mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
Clean up commented uniform code and replace with TODO statement.
This commit is contained in:
parent
257b10eef4
commit
fa46c14a78
@ -413,39 +413,7 @@ void CompilerMSL::emit_resources() {
|
||||
|
||||
emit_interface_block(stage_out_var_id);
|
||||
|
||||
|
||||
// // Global variables.
|
||||
// bool emitted = false;
|
||||
// for (auto global : global_variables)
|
||||
// {
|
||||
// auto &var = get<SPIRVariable>(global);
|
||||
// if (var.storage == StorageClassWorkgroup)
|
||||
// {
|
||||
// emit_shared(var);
|
||||
// emitted = true;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (emitted)
|
||||
// statement("");
|
||||
//
|
||||
// // Emit regular globals which are allocated per invocation.
|
||||
// emitted = false;
|
||||
// for (auto global : global_variables)
|
||||
// {
|
||||
// auto &var = get<SPIRVariable>(global);
|
||||
// if (var.storage == StorageClassPrivate)
|
||||
// {
|
||||
// if (var.storage == StorageClassWorkgroup)
|
||||
// emit_shared(var);
|
||||
// else
|
||||
// statement(variable_decl(var), ";");
|
||||
// emitted = true;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (emitted)
|
||||
// statement("");
|
||||
// TODO: Consolidate and output loose uniforms into an input struct
|
||||
}
|
||||
|
||||
// Emit a structure declaration for the specified interface variable.
|
||||
|
Loading…
Reference in New Issue
Block a user