wgpu/naga/tests
Jamie Nicol baecb5fbf1
[wgsl-in] Ensure textureSampleLevel's level argument is an integer for depth textures (#6529)
Until now we accepted a float, as is the case for non-depth textures.
This makes us compliant with the spec.

The validator is updated to expect an Sint or Uint when the ImageClass
is ImageClass::Depth. The SPIR-V frontend converts the LOD argument
from float to Sint (assuming that it is representable), likewise The
SPIR-V backend now converts the LOD from either Sint or Uint to
Float. HLSL and MSL backends require no changes as they implicitly do
that conversion. GLSL does not support non-compare LOD samples,
therefore no changes are required.
2024-11-18 12:05:04 +00:00
..
in [wgsl-in] Ensure textureSampleLevel's level argument is an integer for depth textures (#6529) 2024-11-18 12:05:04 +00:00
out [wgsl-in] Ensure textureSampleLevel's level argument is an integer for depth textures (#6529) 2024-11-18 12:05:04 +00: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