• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{{- /*
2--------------------------------------------------------------------------------
3Template file for use with tools/intrinsic-gen to generate parameter_usage.h
4
5See:
6* tools/cmd/intrinsic-gen/gen for structures used by this template
7* https://golang.org/pkg/text/template/ for documentation on the template syntax
8--------------------------------------------------------------------------------
9*/ -}}
10
11#ifndef SRC_SEM_PARAMETER_USAGE_H_
12#define SRC_SEM_PARAMETER_USAGE_H_
13
14namespace tint {
15namespace sem {
16
17/// ParameterUsage is extra metadata for identifying a parameter based on its
18/// overload position
19enum class ParameterUsage {
20  kNone = -1,
21{{- range .Sem.UniqueParameterNames  }}
22  k{{PascalCase .}},
23{{- end  }}
24};
25
26/// @returns a string representation of the given parameter usage.
27const char* str(ParameterUsage usage);
28
29}  // namespace sem
30}  // namespace tint
31
32#endif  // SRC_SEM_PARAMETER_USAGE_H_
33