Minor format and typo updates from code review.

This commit is contained in:
Bill Hollings 2020-10-30 16:05:44 -04:00
parent b7b0e804e5
commit 7f67abe0fe
2 changed files with 3 additions and 4 deletions

View File

@ -10031,7 +10031,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
{
// Cannot lower to a SPIRExpression, just copy the object.
// GLSL does not currently use this type and will never get here, but MSL does.
// Handled here instead of CopilerMSL for better integration and general handling,
// Handled here instead of CompilerMSL for better integration and general handling,
// and in case GLSL or other subclasses require it in the future.
auto &e = set<SPIRCombinedImageSampler>(id, *imgsamp);
e.self = id;

View File

@ -105,9 +105,8 @@ bool CompilerMSL::is_msl_resource_binding_used(ExecutionModel model, uint32_t de
uint32_t CompilerMSL::get_resource_array_size(uint32_t id) const
{
StageSetBinding tuple = { get_entry_point().model,
get_decoration(id, DecorationDescriptorSet),
get_decoration(id, DecorationBinding) };
StageSetBinding tuple = { get_entry_point().model, get_decoration(id, DecorationDescriptorSet),
get_decoration(id, DecorationBinding) };
auto itr = resource_bindings.find(tuple);
return itr != end(resource_bindings) ? itr->second.first.size : 0;
}