dawn-cmake/src/transform
Ben Clayton 933d44a2c8 transform/hlsl: Hoist structure constructors to new var
HLSL has some pecular rules around structure constructors.
`S s = S(1,2,3)` is not valid, but `S s = {1,2,3}` is.

This matches the quirkiness with array initializers, so adjust the array
hoisting logic to also support structures.

Fixed: tint:702
Change-Id: Ifdcafd98292715ae2482f72ec06c87842176d270
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46875
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
2021-04-07 17:29:31 +00:00
..
binding_point.h Add transform::BindingRemapper 2021-03-29 21:25:45 +00:00
binding_remapper.cc Add transform::BindingRemapper 2021-03-29 21:25:45 +00:00
binding_remapper.h Add transform::BindingRemapper 2021-03-29 21:25:45 +00:00
binding_remapper_test.cc Add transform::BindingRemapper 2021-03-29 21:25:45 +00:00
bound_array_accessors.cc BoundArrayAccessors: Don't share AST nodes 2021-04-07 08:09:41 +00:00
bound_array_accessors.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
bound_array_accessors_test.cc Move global var validation from Validator to Resolver 2021-04-06 20:18:57 +00:00
canonicalize_entry_point_io.cc CloneContext: Don't create named symbols from unnamed 2021-04-07 11:16:01 +00:00
canonicalize_entry_point_io.h Add a transform for canonicalizing entry point interfaces 2021-03-31 17:44:27 +00:00
canonicalize_entry_point_io_test.cc Add a transform for canonicalizing entry point interfaces 2021-03-31 17:44:27 +00:00
emit_vertex_point_size.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
emit_vertex_point_size.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
emit_vertex_point_size_test.cc Fix GCC warnings / errors 2021-03-15 19:19:42 +00:00
first_index_offset.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
first_index_offset.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
first_index_offset_test.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
hlsl.cc transform/hlsl: Hoist structure constructors to new var 2021-04-07 17:29:31 +00:00
hlsl.h transform/hlsl: Hoist structure constructors to new var 2021-04-07 17:29:31 +00:00
hlsl_test.cc transform/hlsl: Hoist structure constructors to new var 2021-04-07 17:29:31 +00:00
manager.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
manager.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
msl.cc [msl-writer] Use entry point interface canonicalization transform 2021-03-31 18:42:12 +00:00
msl.h [msl-writer] Use entry point interface canonicalization transform 2021-03-31 18:42:12 +00:00
msl_test.cc [msl-writer] Use entry point interface canonicalization transform 2021-03-31 18:42:12 +00:00
renamer.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
renamer.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
renamer_test.cc [resolver] Add entry point IO validation 2021-04-06 15:51:47 +00:00
spirv.cc CloneContext: Don't create named symbols from unnamed 2021-04-07 11:16:01 +00:00
spirv.h [validator] Remove requirement to have an entry point 2021-04-01 22:07:37 +00:00
spirv_test.cc CloneContext: Don't create named symbols from unnamed 2021-04-07 11:16:01 +00:00
test_helper.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
transform.cc [spirv-writer] Handle entry point IO struct types 2021-03-24 17:08:06 +00:00
transform.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
vertex_pulling.cc transform: Add Data as an input 2021-03-29 21:03:59 +00:00
vertex_pulling.h transform: Add Data as an input 2021-03-29 21:03:59 +00:00
vertex_pulling_test.cc Resolver: Check that initializers and assignments are valid 2021-03-18 21:14:44 +00:00