Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Donaldson <afdx@google.com>2021-10-06 17:50:12 +0300
committerGitHub <noreply@github.com>2021-10-06 17:50:12 +0300
commit0c4deebc966b4e3dc29e0c8504959eff7b11f691 (patch)
tree127bcb420c1dd3753be5d2931394ed98e89157a1 /include
parent63a39123262ef79e315ed84720d6ed519f0cc939 (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.h1
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.