mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-10-09 11:29:02 +00:00
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>
14 lines
353 B
Cheetah
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 }}
|