builtins: Use commas for struct members in tests

The test files were already updated manually in a previous change, so
we just need to update the template file to match.

Bug: tint:1475
Change-Id: I6f1b3d3a7a3df014b58e67ec2645b1dfcc275de1
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85260
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price 2022-03-30 17:57:39 +00:00
parent 66d6668372
commit 2ec98d961c
1 changed files with 2 additions and 2 deletions

View File

@ -176,10 +176,10 @@ fn compute_main() {
{{- $access := Eval "Access" $p.Type -}} {{- $access := Eval "Access" $p.Type -}}
{{- if and (eq $filter_storage $storage) (eq $filter_access $access) }} {{- if and (eq $filter_storage $storage) (eq $filter_access $access) }}
{{- if eq "ptr" $p.Type.Target.Name }} {{- if eq "ptr" $p.Type.Target.Name }}
arg_{{$i}}: {{template "Type" (index $p.Type.TemplateArguments 1)}}; arg_{{$i}}: {{template "Type" (index $p.Type.TemplateArguments 1)}},
{{ $args.Put $i (printf "&%v.arg_%v" $var_name $i) -}} {{ $args.Put $i (printf "&%v.arg_%v" $var_name $i) -}}
{{- else }} {{- else }}
arg_{{$i}}: {{template "Type" $p.Type}}; arg_{{$i}}: {{template "Type" $p.Type}},
{{ $args.Put $i (printf "%v.arg_%v" $var_name $i) -}} {{ $args.Put $i (printf "%v.arg_%v" $var_name $i) -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}