blob: 7fc8c5c468c2b48a9c2c7eabe09de8309e31241b [file] [log] [blame]
Ben Claytonf50d56a2022-07-27 18:32:19 +00001{{- /*
2--------------------------------------------------------------------------------
3Template file for use with tools/src/cmd/gen to generate extension_bench.cc
4
5See:
6* tools/src/cmd/gen for structures used by this template
7* https://golang.org/pkg/text/template/ for documentation on the template syntax
8--------------------------------------------------------------------------------
9*/ -}}
10
Ben Clayton11653892023-09-19 19:15:59 +000011{{- $I := LoadIntrinsics "src/tint/lang/wgsl/wgsl.def" -}}
dan sinclair22b4dd22023-07-21 00:40:07 +000012{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
Ben Clayton2dffb3c2023-08-07 12:35:33 +000013{{- $enum := ($I.Sem.Enum "extension") -}}
Ben Claytonf50d56a2022-07-27 18:32:19 +000014
Ben Clayton11653892023-09-19 19:15:59 +000015#include "src/tint/lang/wgsl/extension.h"
Ben Claytonf50d56a2022-07-27 18:32:19 +000016
17#include <array>
18
19#include "benchmark/benchmark.h"
20
Ben Clayton11653892023-09-19 19:15:59 +000021namespace tint::wgsl {
Ben Claytonf50d56a2022-07-27 18:32:19 +000022namespace {
23
24{{ Eval "BenchmarkParseEnum" $enum }}
25
26} // namespace
Ben Clayton11653892023-09-19 19:15:59 +000027} // namespace tint::wgsl