-
Notifications
You must be signed in to change notification settings - Fork 214
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
Add missing float image format inference #5716
base: master
Are you sure you want to change the base?
Conversation
Looks good to me. Thank you for your contribution! |
There is a test whose expected result needs to be updated. |
Not sure how to do that. |
Actually the test failed because the generated spirv failed validation. We need to investigate which validation rule is being violated. |
On my computer that test doesn't fail so I'm not sure how to proceed. |
You probably didn't enable the SPIRV validation.
|
The test fails due to this line I've been unable to figure out where to put the inference code though I'm still looking. |
Ah, actually we do want to have The reasoning is that when the user defines something like |
I could infer for |
It would require modifying the test to use float4 instead of float, but since the test doesn't work with half, it is already testing a special case. |
Inferring for It is safer to not infer for The right fix to this problem IMO, is to allow user to write |
People can use attributes to specify format as well. |
For WGSL where there isn't a "unknown" format, I agree that any inference is better. |
Perhaps we should do this during wgsl emit time, so we can do a last minute infer for wgsl when the default front-end infer failed. |
Looks like that's what glsl does. Converted over to using that. |
Looks good, need a formatting pass. |
fixes #5704