diff options
author | David Neto <dneto@google.com> | 2018-02-09 14:29:02 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2018-03-06 15:17:31 -0500 |
commit | 00fa39318f8bef3c3a587c1fa4da086064166d16 (patch) | |
tree | b2185d7694ce2ba805a311ea62e64f9a716fe1f3 /include | |
parent | 5f50e6209c815e93733f4d58906b86a50ff2af32 (diff) | |
download | spirv-tools-00fa39318f8bef3c3a587c1fa4da086064166d16.tar.gz |
Support SPIR-V 1.3 and Vulkan 1.1
The default target is SPIR-V 1.3.
For example, spirv-as will generate a SPIR-V 1.3 binary by default.
Use command line option "--target-env spv1.0" if you want to make a SPIR-V
1.0 binary or validate against SPIR-V 1.0 rules.
Example:
# Generate a SPIR-V 1.0 binary instead of SPIR-V 1.3
spirv-as --target-env spv1.0 a.spvasm -o a.spv
spirv-as --target-env vulkan1.0 a.spvasm -o a.spv
# Validate as SPIR-V 1.0.
spirv-val --target-env spv1.0 a.spv
# Validate as Vulkan 1.0
spirv-val --target-env vulkan1.0 a.spv
Diffstat (limited to 'include')
-rw-r--r-- | include/spirv-tools/libspirv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spirv-tools/libspirv.h b/include/spirv-tools/libspirv.h index 7f1ebba7..948a6722 100644 --- a/include/spirv-tools/libspirv.h +++ b/include/spirv-tools/libspirv.h @@ -409,6 +409,8 @@ typedef enum { // cl_khr_il_program, latest revision. SPV_ENV_OPENCL_EMBEDDED_2_1, // OpenCL Embedded Profile 2.1 latest revision. SPV_ENV_OPENCL_EMBEDDED_2_2, // OpenCL Embedded Profile 2.2 latest revision. + SPV_ENV_UNIVERSAL_1_3, // SPIR-V 1.3 latest revision, no other restrictions. + SPV_ENV_VULKAN_1_1, // Vulkan 1.0 latest revision. } spv_target_env; // SPIR-V Validator can be parameterized with the following Universal Limits. |