naga-cli: forward '--keep-coordinate-space' flag to GLSL backend (#7206)

This commit is contained in:
Wouter de Bruijn 2025-02-25 00:21:48 +01:00 committed by GitHub
parent 7cbad8e380
commit dfb09c260f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,7 @@ By @brodycj in [#6924](https://github.com/gfx-rs/wgpu/pull/6924).
- 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).
- Allow abstract expressions to be used in WGSL function return statements. By @jamienicol in [#7035](https://github.com/gfx-rs/wgpu/pull/7035).
- Error if structs have two fields with the same name. By @SparkyPotato in [#7088](https://github.com/gfx-rs/wgpu/pull/7088).
- Forward '--keep-coordinate-space' flag to GLSL backend in naga-cli. By @cloone8 in [#7206](https://github.com/gfx-rs/wgpu/pull/7206).
#### General

View File

@ -446,6 +446,10 @@ fn run() -> anyhow::Result<()> {
naga::back::spv::WriterFlags::ADJUST_COORDINATE_SPACE,
!params.keep_coordinate_space,
);
params.glsl.writer_flags.set(
naga::back::glsl::WriterFlags::ADJUST_COORDINATE_SPACE,
!params.keep_coordinate_space,
);
if args.bulk_validate {
return bulk_validate(args, &params);