wgpu/naga/tests
Jim Blandy 0b82776947 [naga msl-out] Avoid UB by making all loops bounded.
In MSL output, avoid undefined behavior due to unbounded loops by
adding an unpredictable, never-actually-taken `break` to the bottom of
each loop body, rather than adding an unpredictable,
never-actually-taken branch over each loop.

This will probably have more of a performance impact, because it
affects each iteration of the loop, but unlike branching over the
loop, which leaves infinite loops (and thus undefined behavior) in the
output, this actually ensures that no loop presented to Metal is
unbounded, so that there is no undefined behavior present that the
optimizer could use to make unwelcome inferences.

Fixes #6528.
2024-11-18 14:10:50 -08:00
..
in [wgsl-in] Reject invalid texture types for textureSampleBias (#6566) 2024-11-18 17:37:52 +01:00
out [naga msl-out] Avoid UB by making all loops bounded. 2024-11-18 14:10:50 -08:00
example_wgsl.rs [naga] Make the example_wgsl test build without wgsl-in feature. 2023-11-24 13:17:30 +01:00
root.rs [naga] Test CallResult and AtomicResult population. 2024-05-28 09:17:16 +02:00
snapshots.rs refactor(wgsl-in): track diagnostic directives in func. analysis 2024-11-12 08:49:02 -05:00
spirv_capabilities.rs Add cfg_alias indirection to Naga's x_out features 2024-07-09 09:53:39 +02:00
validation.rs Fixes crash when there's a missing texture argument (#6486) 2024-11-07 16:35:36 +01:00
wgsl_errors.rs [naga spv-out] Spill arrays and matrices for runtime indexing. 2024-10-11 08:27:15 -07:00