dawn-cmake/tools/src/cmd/tint-bench/entry-points.tmpl
Ben Clayton 2f60bbdf9c tools: Add tint-bench
A simple tool to benchmark tint based on a template file.

Bug: tint:1122
Change-Id: I34ee0fb98e6d2187c145cc38ec3cb48606242cb4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110820
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-11-21 19:14:32 +00:00

14 lines
353 B
Cheetah

{{/* A template file that can be used with tint-bench to time how long it takes
to emit 'Alpha' entry points.
Example usage:
./tools/run tint-bench --tmpl entry-points.tmpl ./out/active/tint --format hlsl
*/}}
{{ range $i := Iterate Alpha }}
@compute @workgroup_size(1)
fn ep_{{$i}}() {
let x = 123;
let y = x * 456;
}
{{ end }}