Clean up commented uniform code and replace with TODO statement.

This commit is contained in:
Bill Hollings 2016-04-11 17:34:26 -04:00
parent 257b10eef4
commit fa46c14a78

View File

@ -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.