blob: e3b0ccce5fdc297afc015844db462a5f7ddd5f64 [file] [log] [blame]
{{- /*
--------------------------------------------------------------------------------
Template file for use with tools/src/cmd/gen to generate builtin_value.h
See:
* tools/src/cmd/gen for structures used by this template
* https://golang.org/pkg/text/template/ for documentation on the template syntax
--------------------------------------------------------------------------------
*/ -}}
{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
{{- $enum := (Sem.Enum "builtin_value") -}}
#ifndef SRC_TINT_LANG_CORE_BUILTIN_BUILTIN_VALUE_H_
#define SRC_TINT_LANG_CORE_BUILTIN_BUILTIN_VALUE_H_
#include "src/tint/utils/text/string_stream.h"
namespace tint::builtin {
/// Builtin value defined with `@builtin(<name>)`.
{{ Eval "DeclareEnum" $enum}}
} // namespace tint::builtin
#endif // SRC_TINT_LANG_CORE_BUILTIN_BUILTIN_VALUE_H_