2021-06-10 18:49:14 +00:00
|
|
|
static const uint width = 128u;
|
2021-06-16 09:19:36 +00:00
|
|
|
Texture2D tex : register(t0, space0);
|
2021-06-10 18:49:14 +00:00
|
|
|
RWByteAddressBuffer result : register(u1, space0);
|
|
|
|
|
2021-06-16 09:19:36 +00:00
|
|
|
struct tint_symbol_1 {
|
|
|
|
uint3 GlobalInvocationId : SV_DispatchThreadID;
|
|
|
|
};
|
2021-06-10 18:49:14 +00:00
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main(tint_symbol_1 tint_symbol) {
|
|
|
|
const uint3 GlobalInvocationId = tint_symbol.GlobalInvocationId;
|
2021-06-30 08:51:36 +00:00
|
|
|
result.Store((4u * ((GlobalInvocationId.y * width) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x));
|
2021-06-10 18:49:14 +00:00
|
|
|
return;
|
|
|
|
}
|