mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 03:05:42 +00:00
These have been deprecated, and their usages in Dawn, CTS and samples have been updated. Fixed: tint:846 Change-Id: I74b831fd5be2e7ca02e8208835eac8beddcef9af Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54325 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com>
15 lines
375 B
HLSL
15 lines
375 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_22 = Src.Load(int3(0, 0, 0));
|
|
srcValue = x_22;
|
|
const uint x_24 = srcValue.x;
|
|
const uint x_25 = (x_24 + 1u);
|
|
const uint4 x_27 = srcValue;
|
|
Dst[int2(0, 0)] = x_27.xxxx;
|
|
return;
|
|
}
|