mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-11 23:56:05 +00:00
Add google benchmark to the DEPs. Implement a basic set of benchmarks for each of the writers and the WGSL parser. Add build rules for CMake. GN build rules TODO. Add a simple go tool (ported from Marl) to diff two benchmarks. Less noisy than the one provided by google benchmark. Bug: tint:1378 Change-Id: I73cf92c5d9fd2d3bfac8f264864fd774afbd5d01 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/76840 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org>
16 lines
323 B
HLSL
16 lines
323 B
HLSL
RWByteAddressBuffer buffer : register(u0, space0);
|
|
|
|
struct tint_symbol_1 {
|
|
uint3 id : SV_DispatchThreadID;
|
|
};
|
|
|
|
void main_inner(uint3 id) {
|
|
buffer.Store((4u * id.x), asuint((asint(buffer.Load((4u * id.x))) + 1)));
|
|
}
|
|
|
|
[numthreads(1, 2, 3)]
|
|
void main(tint_symbol_1 tint_symbol) {
|
|
main_inner(tint_symbol.id);
|
|
return;
|
|
}
|