wgpu/tests
Jim Blandy 47b9f4a2e5
[spv-out] Writer::write_texture_coordinates: Fix result type. (#1188)
Some SPIR-V texture access instructions take coordinates as integers, others as
floats. The types of coordinates in Naga expressions generally match those in
SPIR-V, but Naga indices for arrayed textures are always integers, whereas
SPIR-V combines coordinates and array indices into a single vector, so indices
need to be cast to match the coordinate component type.

This commit makes `write_texture_coordinates` properly cast array indices to
match the coordinates' component type before combining them all into a single
result vector.

Fixes #1186.
2021-08-11 14:55:54 -07:00
..
in [spv-out] Writer::write_texture_coordinates: Fix result type. (#1188) 2021-08-11 14:55:54 -07:00
out [spv-out] Writer::write_texture_coordinates: Fix result type. (#1188) 2021-08-11 14:55:54 -07:00
snapshots.rs Implemented atomics in HLSL-out 2021-08-10 21:48:02 -04:00
wgsl-errors.rs [wgsl-out] atomic load/stores, [glsl-out] revert the prefix 2021-08-10 21:48:02 -04:00