blob: 07f3ee4f915f05b111ca040edd9630535d1ff9c8 [file] [log] [blame] [edit]
{{- /*
--------------------------------------------------------------------------------
Template file for use with tools/src/cmd/gen to generate extension.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/templates/enums.tmpl.inc" -}}
{{- $enum := (Sem.Enum "extension") -}}
#ifndef SRC_TINT_BUILTIN_EXTENSION_H_
#define SRC_TINT_BUILTIN_EXTENSION_H_
#include "src/tint/utils/string_stream.h"
#include "src/tint/utils/unique_vector.h"
namespace tint::builtin {
/// An enumerator of WGSL extensions
/// @see src/tint/intrinsics.def for extension descriptions
{{ Eval "DeclareEnum" $enum}}
// A unique vector of extensions
using Extensions = utils::UniqueVector<Extension, 4>;
} // namespace tint::builtin
#endif // SRC_TINT_BUILTIN_EXTENSION_H_