-
Notifications
You must be signed in to change notification settings - Fork 245
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/WGPU: unfilterable-float type sampler used to filter #5227
Comments
Here is a description of unfilterable float sample type: @skallweitNV |
Yeah it seems we just return unfilterable-float unconditionally. |
As far as I know, textures are not available on compute stage with WGSL. It works only for the fragment shader. |
I would be super surprised if textures are not available in compute stage ... |
Oh, I think possibly the fix here is to make the sampler not be of type |
It could also be because you need derivative of screen-to-triangle transformation in order to pick MIP level. https://www.w3.org/TR/WGSL/#texturesamplelevel seems to be fine. (Check compute.toys samples) |
Oh. Yes, that must be it. |
This issue was split from #5173.
Affected tests under tests/compute (currently excluded):
func-param-legalize
Output from slang-test, for
func-param-legalize
:Generated WGSL for
slangc -o test.wgsl -target wgsl -stage compute -entry computeMain %SLANG_SRC%\tests\compute\func-param-legalize.slang
:The text was updated successfully, but these errors were encountered: