2021-06-24 19:01:06 +00:00
|
|
|
RWByteAddressBuffer drawOut : register(u5, space0);
|
|
|
|
static uint cubeVerts = 0u;
|
|
|
|
|
|
|
|
struct tint_symbol_1 {
|
|
|
|
uint3 global_id : SV_DispatchThreadID;
|
|
|
|
};
|
|
|
|
|
2022-05-31 13:20:28 +00:00
|
|
|
uint tint_atomicAdd(RWByteAddressBuffer buffer, uint offset, uint value) {
|
|
|
|
uint original_value = 0;
|
|
|
|
buffer.InterlockedAdd(offset, value, original_value);
|
|
|
|
return original_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-04 22:15:28 +00:00
|
|
|
void computeMain_inner(uint3 global_id) {
|
2022-05-31 13:20:28 +00:00
|
|
|
const uint firstVertex = tint_atomicAdd(drawOut, 0u, cubeVerts);
|
2021-08-04 22:15:28 +00:00
|
|
|
}
|
|
|
|
|
2021-06-24 19:01:06 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void computeMain(tint_symbol_1 tint_symbol) {
|
2021-08-04 22:15:28 +00:00
|
|
|
computeMain_inner(tint_symbol.global_id);
|
2021-06-24 19:01:06 +00:00
|
|
|
return;
|
|
|
|
}
|