2021-07-26 11:46:47 +00:00
|
|
|
warning: use of deprecated intrinsic
|
2021-06-10 18:49:14 +00:00
|
|
|
Texture2D<uint4> Src : register(t0, space0);
|
|
|
|
RWTexture2D<uint4> Dst : register(u1, space0);
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
void main_1() {
|
2021-06-10 18:49:14 +00:00
|
|
|
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));
|
2021-07-02 22:17:25 +00:00
|
|
|
Dst[int2(0, 0)] = srcValue;
|
2021-06-10 18:49:14 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-06-17 09:10:04 +00:00
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main() {
|
|
|
|
main_1();
|
|
|
|
return;
|
|
|
|
}
|