glsl-out: Implement bounds checks for ImageLoad (#1889)

* glsl-out: Implement bounds checks for `ImageLoad`

* Enable image bounds check snapshot tests for GLSL.

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.

* Apply comments

Snapshot test changes:
Co-authored-by: Jim Blandy <jimb@red-bean.com>
This commit is contained in:
João Capucho authored and GitHub committed 2022-05-30 12:13:58 -07:00
1 parent c7e245c083
commit 0aa7681165
15 files changed
+1559 -793

No files matched your search

+1
View File
@@ -455,6 +455,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> {
))?,
&params.glsl,
&pipeline_options,
params.bounds_check_policies,
)
.unwrap_pretty();
writer.write()?;