dawn-cmake/test/tint/builtins
dan sinclair 3abad2c125 When emitting a MSL struct initializer emit the struct name.
This CL changes the MSL emission for struct initializers to emit the
struct name first.

`const a = {.f=float3(1)}` becomes `const a = Normals{.f=float3(1)}`.

This fixes an issues where the initialization happens inside an array
which the downstream compiler rejected without the explicit struct
naming.

Bug: tint:1641
Change-Id: I948b9ca94f4b89eac6d5bbbaa615b3d71d50c737
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98760
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-08-11 02:28:01 +00:00
..
arrayLength tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
atomicStore tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
atomics/from_gen When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
extractBits tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
gen tint: End-to-end tests for f16 built-in 2022-08-05 15:15:17 +00:00
insertBits tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
textureDimensions tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
textureGather tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
textureLoad tint/val: Make DXC validation output stable 2022-07-26 14:23:24 +00:00
textureNumSamples tint/val: Make DXC validation output stable 2022-07-26 14:23:24 +00:00
degrees.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
degrees.spvasm.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
degrees.spvasm.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
degrees.spvasm.expected.glsl tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
degrees.spvasm.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
degrees.spvasm.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
degrees.spvasm.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
frexp.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
frexp.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
frexp.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
frexp.wgsl.expected.glsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
frexp.wgsl.expected.msl tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
frexp.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
frexp.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
modf.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
modf.wgsl.expected.dxc.hlsl tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
modf.wgsl.expected.fxc.hlsl tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
modf.wgsl.expected.glsl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
modf.wgsl.expected.msl tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
modf.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
modf.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
radians.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
radians.spvasm.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
radians.spvasm.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
radians.spvasm.expected.glsl tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
radians.spvasm.expected.msl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
radians.spvasm.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
radians.spvasm.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
repeated_use.wgsl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00
repeated_use.wgsl.expected.dxc.hlsl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00
repeated_use.wgsl.expected.fxc.hlsl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00
repeated_use.wgsl.expected.glsl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00
repeated_use.wgsl.expected.msl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00
repeated_use.wgsl.expected.spvasm Remove isNan, isInf, isFinite, and isNormal 2022-03-05 00:39:14 +00:00
repeated_use.wgsl.expected.wgsl tint: transform::RemovePhonies: skip builtins with no side effects 2022-08-01 17:21:54 +00:00