mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 11:15:46 +00:00
Bug: tint:1581 Change-Id: Ida43b34118282eeb99ae099c91a6465eb3040ca6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/115080 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
20 lines
402 B
HLSL
20 lines
402 B
HLSL
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 + 1u);
|
|
const uint4 x_27 = srcValue;
|
|
Dst[(0).xx] = x_27;
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
main_1();
|
|
return;
|
|
}
|