Skip to content

Commit

Permalink
Adjust MSL version invariant needs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald authored and kvark committed Jan 25, 2022
1 parent a782592 commit f5d97ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/back/msl/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2936,7 +2936,7 @@ impl<W: Write> Writer<W> {
}
write!(self.out, " [[")?;
resolved.try_fmt(&mut self.out)?;
if options.lang_version >= (2, 3)
if options.lang_version >= (2, 1)
&& *binding == crate::Binding::BuiltIn(crate::BuiltIn::Position)
{
write!(self.out, ", invariant")?;
Expand Down
2 changes: 1 addition & 1 deletion tests/in/skybox.param.ron
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
adjust_coordinate_space: false,
),
msl: (
lang_version: (2, 3),
lang_version: (2, 1),
per_stage_map: (
vs: (
resources: {
Expand Down
2 changes: 1 addition & 1 deletion tests/out/msl/skybox.msl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// language: metal2.3
// language: metal2.1
#include <metal_stdlib>
#include <simd/simd.h>

Expand Down

0 comments on commit f5d97ca

Please sign in to comment.