Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 531c2d8

Browse files
Update compiler.cc
1 parent 8f41b7d commit 531c2d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

impeller/compiler/compiler.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ static CompilerBackend CreateMSLCompiler(const spirv_cross::ParsedIR& ir,
3737
sl_compiler->set_msl_options(sl_options);
3838

3939
// Set metal resource mappings to be consistent with location based mapping
40-
// used on other backends when creating fragment shaders. This relies on the
41-
// fact that the order of uniforms in the IR mirrors the declared order in the
42-
// shader source.
40+
// used on other backends when creating fragment shaders.
4341
if (source_options.remap_samplers) {
4442
std::vector<uint32_t> sampler_offsets;
4543
ir.for_each_typed_id<spirv_cross::SPIRVariable>(

0 commit comments

Comments
 (0)