Skip to content

Commit dfb09c2

Browse files
authored
naga-cli: forward '--keep-coordinate-space' flag to GLSL backend (#7206)
1 parent 7cbad8e commit dfb09c2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ By @brodycj in [#6924](https://github.com/gfx-rs/wgpu/pull/6924).
180180
- Fix some instances of functions which have a return type but don't return a value being incorrectly validated. By @jamienicol in [#7013](https://github.com/gfx-rs/wgpu/pull/7013).
181181
- Allow abstract expressions to be used in WGSL function return statements. By @jamienicol in [#7035](https://github.com/gfx-rs/wgpu/pull/7035).
182182
- Error if structs have two fields with the same name. By @SparkyPotato in [#7088](https://github.com/gfx-rs/wgpu/pull/7088).
183+
- Forward '--keep-coordinate-space' flag to GLSL backend in naga-cli. By @cloone8 in [#7206](https://github.com/gfx-rs/wgpu/pull/7206).
183184
184185
#### General
185186

naga-cli/src/bin/naga.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ fn run() -> anyhow::Result<()> {
446446
naga::back::spv::WriterFlags::ADJUST_COORDINATE_SPACE,
447447
!params.keep_coordinate_space,
448448
);
449+
params.glsl.writer_flags.set(
450+
naga::back::glsl::WriterFlags::ADJUST_COORDINATE_SPACE,
451+
!params.keep_coordinate_space,
452+
);
449453

450454
if args.bulk_validate {
451455
return bulk_validate(args, &params);

0 commit comments

Comments
 (0)