From 7f67abe0fe9e42e3103a1846bd1b7e67cf068293 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Fri, 30 Oct 2020 16:05:44 -0400 Subject: [PATCH] Minor format and typo updates from code review. --- spirv_glsl.cpp | 2 +- spirv_msl.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index b1336517..e55844c2 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -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(id, *imgsamp); e.self = id; diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 499d723a..3e85f4b2 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -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; }