mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-10 15:15:58 +00:00
And fix issues where global variables would not be emitted unless they were transitively referenced by an entry point. This change requires crbug.com/tint/697 to be fixed before landing. Change-Id: I712bd9d369e08c9a3cdfb0f114c3609584f91f28 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54241 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
15 lines
372 B
HLSL
15 lines
372 B
HLSL
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_18 = Src.Load(int3(0, 0, 0));
|
|
srcValue = x_18;
|
|
const uint x_22 = srcValue.x;
|
|
srcValue.x = (x_22 + asuint(1));
|
|
const uint4 x_27 = srcValue;
|
|
Dst[int2(0, 0)] = x_27;
|
|
return;
|
|
}
|