mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 20:25:44 +00:00
This CL moves the AddressSpace enum from type:: to builtin:: Change-Id: Ie8d533be4dd42b34eef164b64e2c9e0843de5c3d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120401 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
26 lines
709 B
Cheetah
26 lines
709 B
Cheetah
{{- /*
|
|
--------------------------------------------------------------------------------
|
|
Template file for use with tools/src/cmd/gen to generate address_space.cc
|
|
|
|
To update the generated file, run:
|
|
./tools/run gen
|
|
|
|
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 "address_space") -}}
|
|
|
|
#include "src/tint/builtin/address_space.h"
|
|
|
|
namespace tint::builtin {
|
|
|
|
{{ Eval "ParseEnum" $enum}}
|
|
|
|
{{ Eval "EnumOStream" $enum}}
|
|
|
|
} // namespace tint::builtin
|