-
Notifications
You must be signed in to change notification settings - Fork 255
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
slang-test assert on usePassthru #5276
Comments
This assertion is a blocker for a PR I am going to comment out the assert for now. |
If it's a single test triggering this due to some file-extension issue, then I think the test should just be disabled for now, rather than commenting out the assert. |
It appears that the assertion is incorrect and it should be removed. The issue turned out to be related to the use of The document describes what
Basically, it compiles the given shader with DXC compiler and generate an output image. The problem is on how the input arguments are generated when rendering for metal and wgpu.
And the command-line argument for rendering with WGPU API is,
The first set of arguments conflict in a way that "-wgpu" instructs to use Tint as the renderer at the same time, it tells to use DXC compile with the next argument, "-hlsl". In this case, "-wgpu" should be ignored. The second set is kind of O.K, because "-slang" and "-wgpu" don't conflict. "-slang" instructs to treat the input as slang shader and "-wgpu" instructs to use WGPU as the output render API. |
I merged a proper fix as in PR 5315. However, the test itself is still failing. |
To be clear, the proper fix was to remove the assertion and replace it with the following lines, which is in a same pattern as other targets in the same switch-statement.
As explained on my previous comment, a right behavior is to ignore |
This assert triggers
Affected test:
I think the reason
usePassthru
is true is due to this special case logic above, for this particular test, due to file extension of.hlsl
:The text was updated successfully, but these errors were encountered: