Name Date Size

..25-Oct-20244 KiB

construct.ccH A D25-Oct-20242.9 KiB

construct.hH A D25-Oct-20249.5 KiB

entry_point_info.ccH A D25-Oct-20241.6 KiB

entry_point_info.hH A D25-Oct-20243.5 KiB

enum_converter.ccH A D25-Oct-20245.6 KiB

enum_converter.hH A D25-Oct-20242.8 KiB

enum_converter_test.ccH A D25-Oct-202415.3 KiB

fail_stream.hH A D25-Oct-20242.2 KiB

fail_stream_test.ccH A D25-Oct-20241.8 KiB

function.ccH A D25-Oct-2024227.7 KiB

function.hH A D25-Oct-202458 KiB

function_arithmetic_test.ccH A D25-Oct-202439.2 KiB

function_bit_test.ccH A D25-Oct-202432.8 KiB

function_call_test.ccH A D25-Oct-20245.2 KiB

function_cfg_test.ccH A D25-Oct-2024326.1 KiB

function_composite_test.ccH A D25-Oct-202433.3 KiB

function_conversion_test.ccH A D25-Oct-202421.1 KiB

function_decl_test.ccH A D25-Oct-20244.2 KiB

function_glsl_std_450_test.ccH A D25-Oct-202444.5 KiB

function_logical_test.ccH A D25-Oct-202437.3 KiB

function_memory_test.ccH A D25-Oct-202441.2 KiB

function_misc_test.ccH A D25-Oct-202410.2 KiB

function_var_test.ccH A D25-Oct-202444.5 KiB

namer.ccH A D25-Oct-20247.3 KiB

namer.hH A D25-Oct-20246.2 KiB

namer_test.ccH A D25-Oct-202413.5 KiB

parser.ccH A D25-Oct-20242.3 KiB

parser.hH A D25-Oct-20241.2 KiB

parser_impl.ccH A D25-Oct-202498.2 KiB

parser_impl.hH A D25-Oct-202438.7 KiB

parser_impl_barrier_test.ccH A D25-Oct-20246.9 KiB

parser_impl_convert_member_decoration_test.ccH A D25-Oct-20245.5 KiB

parser_impl_convert_type_test.ccH A D25-Oct-202430.1 KiB

parser_impl_function_decl_test.ccH A D25-Oct-202414 KiB

parser_impl_get_decorations_test.ccH A D25-Oct-20246.1 KiB

parser_impl_handle_test.ccH A D25-Oct-2024145.3 KiB

parser_impl_import_test.ccH A D25-Oct-20244.7 KiB

parser_impl_module_var_test.ccH A D25-Oct-2024149.2 KiB

parser_impl_named_types_test.ccH A D25-Oct-20244.5 KiB

parser_impl_test.ccH A D25-Oct-20246.8 KiB

parser_impl_test_helper.ccH A D25-Oct-20242.7 KiB

parser_impl_test_helper.hH A D25-Oct-202412.9 KiB

parser_impl_user_name_test.ccH A D25-Oct-20246.8 KiB

parser_test.ccH A D25-Oct-20241.2 KiB

parser_type.ccH A D25-Oct-202418.9 KiB

parser_type.hH A D25-Oct-202419.8 KiB

parser_type_test.ccH A D25-Oct-20244.9 KiB

README.mdH A D25-Oct-20241.1 KiB

spirv_tools_helpers_test.ccH A D25-Oct-20242.9 KiB

spirv_tools_helpers_test.hH A D25-Oct-20241.5 KiB

usage.ccH A D25-Oct-20244.4 KiB

usage.hH A D25-Oct-20244.6 KiB

usage_test.ccH A D25-Oct-20247.6 KiB

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