mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-10 07:05:54 +00:00
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>
20 lines
423 B
HLSL
20 lines
423 B
HLSL
warning: use of deprecated intrinsic
|
|
Texture2D<uint4> Src : register(t0, space0);
|
|
RWTexture2D<uint4> Dst : register(u1, space0);
|
|
|
|
void main_1() {
|
|
uint4 srcValue = uint4(0u, 0u, 0u, 0u);
|
|
const uint4 x_18 = Src.Load(int3(0, 0, 0));
|
|
srcValue = x_18;
|
|
const uint x_22 = srcValue.x;
|
|
srcValue.x = (x_22 + asuint(1));
|
|
Dst[int2(0, 0)] = srcValue;
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
main_1();
|
|
return;
|
|
}
|