mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
tint: Add _tint_materialize internal builtin
Returns a materialization of the given argument. Bug: tint:1697 Change-Id: Id25f7e10baa884047af21f89245884c551560f7b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104822 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
73683027a3
commit
933eb5159e
@@ -11,18 +11,20 @@ See:
|
||||
|
||||
{{- /* For each permutation of each overload of each function... */ -}}
|
||||
{{- range Sem.Builtins -}}
|
||||
{{- range .Overloads -}}
|
||||
{{- range Permute . -}}
|
||||
{{- /* Generate a ./literal/<function>/<permuataion-hash>.wgsl file using
|
||||
the Permutation macro defined below */ -}}
|
||||
{{- $file := printf "./literal/%v/%v.wgsl" .Intrinsic.Name .Hash -}}
|
||||
{{- $content := Eval "Permutation" "Overload" . "Mode" "literal" -}}
|
||||
{{- WriteFile $file $content -}}
|
||||
{{- /* Generate a ./var/<function>/<permuataion-hash>.wgsl file using
|
||||
the Permutation macro defined below */ -}}
|
||||
{{- $file := printf "./var/%v/%v.wgsl" .Intrinsic.Name .Hash -}}
|
||||
{{- $content := Eval "Permutation" "Overload" . "Mode" "var" -}}
|
||||
{{- WriteFile $file $content -}}
|
||||
{{ if not (HasPrefix .Name "_") }}
|
||||
{{- range .Overloads -}}
|
||||
{{- range Permute . -}}
|
||||
{{- /* Generate a ./literal/<function>/<permuataion-hash>.wgsl file using
|
||||
the Permutation macro defined below */ -}}
|
||||
{{- $file := printf "./literal/%v/%v.wgsl" .Intrinsic.Name .Hash -}}
|
||||
{{- $content := Eval "Permutation" "Overload" . "Mode" "literal" -}}
|
||||
{{- WriteFile $file $content -}}
|
||||
{{- /* Generate a ./var/<function>/<permuataion-hash>.wgsl file using
|
||||
the Permutation macro defined below */ -}}
|
||||
{{- $file := printf "./var/%v/%v.wgsl" .Intrinsic.Name .Hash -}}
|
||||
{{- $content := Eval "Permutation" "Overload" . "Mode" "var" -}}
|
||||
{{- WriteFile $file $content -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user