Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[naga-cli] Use of --stdin-file-path prevents writing output files #6474

Closed
bavalpey opened this issue Oct 28, 2024 · 0 comments · Fixed by #6480
Closed

[naga-cli] Use of --stdin-file-path prevents writing output files #6474

bavalpey opened this issue Oct 28, 2024 · 0 comments · Fixed by #6480
Assignees
Labels
naga Shader Translator type: bug Something isn't working

Comments

@bavalpey
Copy link

Description
It's impossible to translate stdin files with naga-cli and specify the output file. It looks like the switch for parsing the --stdin-file-path argument is only invoked if the first file argument is Some: args.files.first(). However, this means that it's actually impossible to have naga translate a file from stdin.

Repro steps

$cat file.wgsl | naga --input-kind wgsl --stdin-file-path file.wgsl file.spv

Expected vs observed behavior
Using stdin-file-path should not cause naga to treat the first file name in the argument list as an input file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
naga Shader Translator type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants