|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| README.md | D | 12-May-2024 | 1.1 KiB | 35 | 21 |
| construct.cc | D | 12-May-2024 | 2.9 KiB | 71 | 40 |
| construct.h | D | 12-May-2024 | 9.5 KiB | 279 | 121 |
| entry_point_info.cc | D | 12-May-2024 | 1.6 KiB | 45 | 24 |
| entry_point_info.h | D | 12-May-2024 | 3.5 KiB | 96 | 35 |
| enum_converter.cc | D | 12-May-2024 | 5.6 KiB | 185 | 151 |
| enum_converter.h | D | 12-May-2024 | 2.8 KiB | 82 | 28 |
| enum_converter_test.cc | D | 12-May-2024 | 15.3 KiB | 431 | 348 |
| fail_stream.h | D | 12-May-2024 | 2.2 KiB | 75 | 30 |
| fail_stream_test.cc | D | 12-May-2024 | 1.8 KiB | 74 | 47 |
| function.cc | D | 12-May-2024 | 227.7 KiB | 6,105 | 4,442 |
| function.h | D | 12-May-2024 | 58 KiB | 1,305 | 392 |
| function_arithmetic_test.cc | D | 12-May-2024 | 39.2 KiB | 1,086 | 928 |
| function_bit_test.cc | D | 12-May-2024 | 32.8 KiB | 912 | 767 |
| function_call_test.cc | D | 12-May-2024 | 5.2 KiB | 203 | 168 |
| function_cfg_test.cc | D | 12-May-2024 | 326.1 KiB | 13,225 | 10,367 |
| function_composite_test.cc | D | 12-May-2024 | 33.3 KiB | 1,069 | 954 |
| function_conversion_test.cc | D | 12-May-2024 | 21.1 KiB | 656 | 582 |
| function_decl_test.cc | D | 12-May-2024 | 4.2 KiB | 157 | 124 |
| function_glsl_std_450_test.cc | D | 12-May-2024 | 44.5 KiB | 1,246 | 1,100 |
| function_logical_test.cc | D | 12-May-2024 | 37.3 KiB | 993 | 843 |
| function_memory_test.cc | D | 12-May-2024 | 41.2 KiB | 1,316 | 1,152 |
| function_misc_test.cc | D | 12-May-2024 | 10.2 KiB | 351 | 290 |
| function_var_test.cc | D | 12-May-2024 | 44.5 KiB | 1,677 | 1,352 |
| namer.cc | D | 12-May-2024 | 7.3 KiB | 236 | 175 |
| namer.h | D | 12-May-2024 | 6.2 KiB | 162 | 50 |
| namer_test.cc | D | 12-May-2024 | 13.5 KiB | 408 | 322 |
| parser.cc | D | 12-May-2024 | 2.3 KiB | 70 | 40 |
| parser.h | D | 12-May-2024 | 1.2 KiB | 39 | 12 |
| parser_impl.cc | D | 12-May-2024 | 98.2 KiB | 2,847 | 2,336 |
| parser_impl.h | D | 12-May-2024 | 38.7 KiB | 883 | 267 |
| parser_impl_barrier_test.cc | D | 12-May-2024 | 6.9 KiB | 214 | 187 |
| parser_impl_convert_member_decoration_test.cc | D | 12-May-2024 | 5.5 KiB | 158 | 115 |
| parser_impl_convert_type_test.cc | D | 12-May-2024 | 30.1 KiB | 983 | 806 |
| parser_impl_function_decl_test.cc | D | 12-May-2024 | 14 KiB | 476 | 413 |
| parser_impl_get_decorations_test.cc | D | 12-May-2024 | 6.1 KiB | 175 | 140 |
| parser_impl_handle_test.cc | D | 12-May-2024 | 145.3 KiB | 3,711 | 2,750 |
| parser_impl_import_test.cc | D | 12-May-2024 | 4.7 KiB | 129 | 90 |
| parser_impl_module_var_test.cc | D | 12-May-2024 | 149.2 KiB | 5,249 | 4,468 |
| parser_impl_named_types_test.cc | D | 12-May-2024 | 4.5 KiB | 160 | 116 |
| parser_impl_test.cc | D | 12-May-2024 | 6.8 KiB | 228 | 192 |
| parser_impl_test_helper.cc | D | 12-May-2024 | 2.7 KiB | 86 | 62 |
| parser_impl_test_helper.h | D | 12-May-2024 | 12.9 KiB | 320 | 121 |
| parser_impl_user_name_test.cc | D | 12-May-2024 | 6.8 KiB | 216 | 152 |
| parser_test.cc | D | 12-May-2024 | 1.2 KiB | 41 | 18 |
| parser_type.cc | D | 12-May-2024 | 18.9 KiB | 646 | 503 |
| parser_type.h | D | 12-May-2024 | 19.8 KiB | 611 | 243 |
| parser_type_test.cc | D | 12-May-2024 | 4.9 KiB | 103 | 81 |
| spirv_tools_helpers_test.cc | D | 12-May-2024 | 2.9 KiB | 88 | 55 |
| spirv_tools_helpers_test.h | D | 12-May-2024 | 1.5 KiB | 46 | 16 |
| usage.cc | D | 12-May-2024 | 4.4 KiB | 195 | 149 |
| usage.h | D | 12-May-2024 | 4.6 KiB | 138 | 53 |
| usage_test.cc | D | 12-May-2024 | 7.6 KiB | 296 | 235 |
README.md
1# SPIR-V Reader
2
3This component translates SPIR-V written for Vulkan into the Tint AST.
4
5The SPIR-V reader entry point is `tint::reader::spirv::Parser`, which
6implements the Reader interface in `tint::reader::Reader`.
7
8It's usable from the Tint command line:
9
10 # Translate SPIR-V into WGSL.
11 tint --format wgsl a.spv
12
13## Supported dialects
14
15The SPIR-V module must pass validation for the Vulkan 1.1 environment in SPIRV-Tools.
16In particular, SPIR-V 1.4 and later are not supported.
17
18For example, the equivalent of the following must pass:
19
20 spirv-val --target-env vulkan1.1 a.spv
21
22Additionally, the reader imposes additional constraints based on:
23
24* The features supported by WGSL. Some Vulkan features might not be supportable because
25 WebGPU must be portable to other graphics APIs.
26* Limitations of the reader itself. These might be relaxed in the future with extra
27 engineering work.
28
29## Feedback
30
31Please file issues at https://crbug.com/tint, and apply label `SpirvReader`.
32
33Outstanding issues can be found by using the `SpirvReader` label in the Chromium project's
34bug tracker: https://bugs.chromium.org/p/tint/issues/list?q=label:SpirvReader
35