diff options
author | Alastair Donaldson <afdx@google.com> | 2021-10-06 17:50:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 17:50:12 +0300 |
commit | 0c4deebc966b4e3dc29e0c8504959eff7b11f691 (patch) | |
tree | 127bcb420c1dd3753be5d2931394ed98e89157a1 /include | |
parent | 63a39123262ef79e315ed84720d6ed519f0cc939 (diff) |
Include a maximum value for spv_target_env (#4559)
To allow querying the range of target environments (to ensure that a
target environment value is within the valid range of the associated
enum), this change adds a maximum value to the spv_target_env
enumeration.
Diffstat (limited to 'include')
-rw-r--r-- | include/spirv-tools/libspirv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/spirv-tools/libspirv.h b/include/spirv-tools/libspirv.h index 8a06db68c..8df14f5fb 100644 --- a/include/spirv-tools/libspirv.h +++ b/include/spirv-tools/libspirv.h @@ -516,6 +516,7 @@ typedef enum { SPV_ENV_UNIVERSAL_1_5, // SPIR-V 1.5 latest revision, no other restrictions. SPV_ENV_VULKAN_1_2, // Vulkan 1.2 latest revision. + SPV_ENV_MAX // Keep this as the last enum value. } spv_target_env; // SPIR-V Validator can be parameterized with the following Universal Limits. |