transform: Add transform to add empty entry point

Use this from the HLSL and SPIR-V sanitizers, instead of duplicating
this logic for them.

This is step towards removing the sanitizers completely.

Change-Id: Ifa9f23d84fd3505d30a928c260181a699c5f1783
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/63582
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price
2021-09-07 18:59:21 +00:00
parent e980ac1699
commit b584b374a1
12 changed files with 174 additions and 58 deletions

View File

@@ -287,6 +287,7 @@ tint_unittests_source_set("tint_unittests_core_src") {
"../src/symbol_table_test.cc",
"../src/symbol_test.cc",
"../src/traits_test.cc",
"../src/transform/add_empty_entry_point_test.cc",
"../src/transform/array_length_from_uniform_test.cc",
"../src/transform/binding_remapper_test.cc",
"../src/transform/calculate_array_length_test.cc",