-
Notifications
You must be signed in to change notification settings - Fork 194
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
glsl-out: Implement bounds checks for ImageLoad
#1889
Conversation
f67e544
to
d5f6c6f
Compare
ImageLoad
ImageLoad
@JCapucho Should we enable GLSL output for the |
I guess we'd have to add an actual entry point to the WGSL file, and have it call everything. |
009ed82
to
ad876df
Compare
In addition to the snapshot.rs changes, this entails adding an entry point function to `bounds-check-image-restrict.wgsl` and `bounds-check-image-rzsw.wgsl`, including appropriate data in the param.ron files.
ad876df
to
bb95a93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great - thank you! I appreciated the comments; especially in write_image_load
there are a lot of different things going on and the code gets long, and it helped me keep score.
These are all just suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - thank you!
As of gfx-rs#1889, the GLSL back end takes an additional argument specifying the bounds checks policies to use.
As of #1889, the GLSL back end takes an additional argument specifying the bounds checks policies to use.
Depends on #1887
Implements bounds checks for
ImageLoad
on sampled images, because the opengl behavior on invalid texel load and stores for storage images isReadZeroSkipWrite
(no bound checks needed).Only works on core for now since es doesn't support samples/levels queries (kvark said in the matrix room that they should be passed in uniforms then)
Closes #1080