mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
Fixed: tint:926 Change-Id: Ia27abe605ebfb46a7524b50500ecebd6e4656d1d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55883 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
16 lines
396 B
HLSL
16 lines
396 B
HLSL
RWByteAddressBuffer drawOut : register(u5, space0);
|
|
static uint cubeVerts = 0u;
|
|
|
|
struct tint_symbol_1 {
|
|
uint3 global_id : SV_DispatchThreadID;
|
|
};
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void computeMain(tint_symbol_1 tint_symbol) {
|
|
const uint3 global_id = tint_symbol.global_id;
|
|
uint atomic_result = 0u;
|
|
drawOut.InterlockedAdd(0u, 0u, atomic_result);
|
|
const uint firstVertex = atomic_result;
|
|
return;
|
|
}
|