mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Add testing for 1D w/ level textureLoad overload
BUG=tint:516 Change-Id: Ic075dc52618bc6d2492e82538f0f02d45f925ddf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/42700 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
2aaf7b5c76
commit
e5c105d40a
@@ -1700,6 +1700,51 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
|
||||
1); // coords
|
||||
},
|
||||
},
|
||||
{
|
||||
ValidTextureOverload::kLoad1dLevelF32,
|
||||
"textureLoad(t : texture_1d<f32>,\n"
|
||||
" coords : i32,\n"
|
||||
" level : i32) -> vec4<f32>",
|
||||
TextureKind::kRegular,
|
||||
type::TextureDimension::k1d,
|
||||
TextureDataType::kF32,
|
||||
"textureLoad",
|
||||
[](ProgramBuilder* b) {
|
||||
return b->ExprList("texture", // t
|
||||
1, // coords
|
||||
3); // level
|
||||
},
|
||||
},
|
||||
{
|
||||
ValidTextureOverload::kLoad1dLevelU32,
|
||||
"textureLoad(t : texture_1d<u32>,\n"
|
||||
" coords : i32,\n"
|
||||
" level : i32) -> vec4<u32>",
|
||||
TextureKind::kRegular,
|
||||
type::TextureDimension::k1d,
|
||||
TextureDataType::kU32,
|
||||
"textureLoad",
|
||||
[](ProgramBuilder* b) {
|
||||
return b->ExprList("texture", // t
|
||||
1, // coords
|
||||
3); // level
|
||||
},
|
||||
},
|
||||
{
|
||||
ValidTextureOverload::kLoad1dLevelI32,
|
||||
"textureLoad(t : texture_1d<i32>,\n"
|
||||
" coords : i32,\n"
|
||||
" level : i32) -> vec4<i32>",
|
||||
TextureKind::kRegular,
|
||||
type::TextureDimension::k1d,
|
||||
TextureDataType::kI32,
|
||||
"textureLoad",
|
||||
[](ProgramBuilder* b) {
|
||||
return b->ExprList("texture", // t
|
||||
1, // coords
|
||||
3); // level
|
||||
},
|
||||
},
|
||||
{
|
||||
ValidTextureOverload::kLoad2dF32,
|
||||
"textureLoad(t : texture_2d<f32>,\n"
|
||||
|
||||
@@ -137,6 +137,9 @@ enum class ValidTextureOverload {
|
||||
kLoad1dF32,
|
||||
kLoad1dU32,
|
||||
kLoad1dI32,
|
||||
kLoad1dLevelF32,
|
||||
kLoad1dLevelU32,
|
||||
kLoad1dLevelI32,
|
||||
kLoad2dF32,
|
||||
kLoad2dU32,
|
||||
kLoad2dI32,
|
||||
@@ -165,7 +168,7 @@ enum class ValidTextureOverload {
|
||||
kLoadDepth2dLevelF32,
|
||||
kLoadDepth2dArrayF32,
|
||||
kLoadDepth2dArrayLevelF32,
|
||||
kLoadStorageRO1dRgba32float, // Not permutated for all texel formats
|
||||
kLoadStorageRO1dRgba32float, // Not permutated for all texel formats
|
||||
kLoadStorageRO2dRgba8unorm,
|
||||
kLoadStorageRO2dRgba8snorm,
|
||||
kLoadStorageRO2dRgba8uint,
|
||||
|
||||
Reference in New Issue
Block a user