dawn-cmake/test/bug/tint/453.wgsl.expected.hlsl
Ben Clayton 558969dd19 intrinsics: Deprecate textureLoad() for storage textures
Bug: tint:1013
Change-Id: I38fb8988e48ff5bbfc55f57e5e3fd3f9c3b361cd
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59662
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2021-07-26 11:46:47 +00:00

18 lines
506 B
HLSL

bug/tint/453.wgsl:7:26 warning: use of deprecated intrinsic
let x_22 : vec4<u32> = textureLoad(Src, vec2<i32>(0, 0));
^^^^^^^^^^^
Texture2D<uint4> Src : register(t0, space0);
RWTexture2D<uint4> Dst : register(u1, space0);
[numthreads(1, 1, 1)]
void main() {
uint4 srcValue = uint4(0u, 0u, 0u, 0u);
const uint4 x_22 = Src.Load(int3(0, 0, 0));
srcValue = x_22;
const uint x_24 = srcValue.x;
const uint x_25 = (x_24 + 1u);
Dst[int2(0, 0)] = srcValue.xxxx;
return;
}