mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Convert StorageTextureValidationTests to WGSL
Bug: tint:140 Bug: tint:368 Change-Id: I6593e40db5db4058bf6fdf3303ec7e99c0a3df12 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37900 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
2231fcda56
commit
88f7f580bc
@@ -516,6 +516,42 @@ namespace utils {
|
||||
return "rgba32sint";
|
||||
case wgpu::TextureFormat::RGBA32Float:
|
||||
return "rgba32float";
|
||||
|
||||
// The below do not currently exist in the WGSL spec, but are used
|
||||
// for tests that expect compilation failure.
|
||||
case wgpu::TextureFormat::R8Unorm:
|
||||
return "r8unorm";
|
||||
case wgpu::TextureFormat::R8Snorm:
|
||||
return "r8snorm";
|
||||
case wgpu::TextureFormat::R8Uint:
|
||||
return "r8uint";
|
||||
case wgpu::TextureFormat::R8Sint:
|
||||
return "r8sint";
|
||||
case wgpu::TextureFormat::R16Uint:
|
||||
return "r16uint";
|
||||
case wgpu::TextureFormat::R16Sint:
|
||||
return "r16sint";
|
||||
case wgpu::TextureFormat::R16Float:
|
||||
return "r16float";
|
||||
case wgpu::TextureFormat::RG8Unorm:
|
||||
return "rg8unorm";
|
||||
case wgpu::TextureFormat::RG8Snorm:
|
||||
return "rg8snorm";
|
||||
case wgpu::TextureFormat::RG8Uint:
|
||||
return "rg8uint";
|
||||
case wgpu::TextureFormat::RG8Sint:
|
||||
return "rg8sint";
|
||||
case wgpu::TextureFormat::RG16Uint:
|
||||
return "rg16uint";
|
||||
case wgpu::TextureFormat::RG16Sint:
|
||||
return "rg16sint";
|
||||
case wgpu::TextureFormat::RG16Float:
|
||||
return "rg16float";
|
||||
case wgpu::TextureFormat::RGB10A2Unorm:
|
||||
return "rgb10a2unorm";
|
||||
case wgpu::TextureFormat::RG11B10Ufloat:
|
||||
return "rg11b10ufloat";
|
||||
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user