Skip to content

Add GLSL output to naga snapshots#9204

Open
cwfitzgerald wants to merge 1 commit intogfx-rs:trunkfrom
cwfitzgerald:cw/naga-glsl-spirv-snapshots
Open

Add GLSL output to naga snapshots#9204
cwfitzgerald wants to merge 1 commit intogfx-rs:trunkfrom
cwfitzgerald:cw/naga-glsl-spirv-snapshots

Conversation

@cwfitzgerald
Copy link
Copy Markdown
Member

Connections

Closes #9190

Description

This helps make the diffs clearer when modifying spirv output. Basically all of them translate correctly.

Testing

Tested in CI.

Squash or Rebase?

Commit

Copy link
Copy Markdown
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions, otherwise lgtm

let stdout = String::from_utf8_lossy(&output.stdout).replace("\r\n", "\n");

if !output.status.success() {
let mut commented = String::new();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an extra line like "spirv-cross error:", this also makes errors more searchable

Some(&pipeline_options),
&format!("{}.spvasm", ep.name),
);
write_spirv_cross_glsl(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if in this case we should still combine them into one file, even if the spirv entry points will be written separately?

@Wumpf Wumpf self-assigned this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SPIR-V snapshot tests converted into GLSL using spirv-cross

3 participants