From d2b45422b5ae65bb4c000d50af6beb9b0d78f1b8 Mon Sep 17 00:00:00 2001 From: Eric Werness Date: Tue, 23 Aug 2022 13:20:48 -0700 Subject: [PATCH] VK_EXT_opacity_micromap --- include/spirv/unified1/spirv.bf | 3 +++ include/spirv/unified1/spirv.core.grammar.json | 13 +++++++++++++ include/spirv/unified1/spirv.cs | 3 +++ include/spirv/unified1/spirv.h | 3 +++ include/spirv/unified1/spirv.hpp | 3 +++ include/spirv/unified1/spirv.hpp11 | 3 +++ include/spirv/unified1/spirv.json | 4 +++- include/spirv/unified1/spirv.lua | 3 +++ include/spirv/unified1/spirv.py | 3 +++ include/spirv/unified1/spv.d | 3 +++ 10 files changed, 40 insertions(+), 1 deletion(-) diff --git a/include/spirv/unified1/spirv.bf b/include/spirv/unified1/spirv.bf index f83434a..4bdb937 100644 --- a/include/spirv/unified1/spirv.bf +++ b/include/spirv/unified1/spirv.bf @@ -1063,6 +1063,7 @@ namespace Spv FragmentShaderPixelInterlockEXT = 5378, DemoteToHelperInvocation = 5379, DemoteToHelperInvocationEXT = 5379, + RayTracingOpacityMicromapEXT = 5381, BindlessTextureNV = 5390, SubgroupShuffleINTEL = 5568, SubgroupBufferBlockIOINTEL = 5569, @@ -1136,6 +1137,7 @@ namespace Spv CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, + ForceOpacityMicromap2StateEXT = 10, } [AllowDuplicates, CRepr] public enum RayFlagsMask @@ -1151,6 +1153,7 @@ namespace Spv CullNoOpaqueKHR = 0x00000080, SkipTrianglesKHR = 0x00000100, SkipAABBsKHR = 0x00000200, + ForceOpacityMicromap2StateEXT = 0x00000400, } [AllowDuplicates, CRepr] public enum RayQueryIntersection diff --git a/include/spirv/unified1/spirv.core.grammar.json b/include/spirv/unified1/spirv.core.grammar.json index 5cedfb0..8a3e332 100644 --- a/include/spirv/unified1/spirv.core.grammar.json +++ b/include/spirv/unified1/spirv.core.grammar.json @@ -9409,6 +9409,12 @@ "value" : "0x0200", "capabilities" : [ "RayTraversalPrimitiveCullingKHR" ], "version" : "None" + }, + { + "enumerant" : "ForceOpacityMicromap2StateEXT", + "value" : "0x0400", + "capabilities" : [ "RayTracingOpacityMicromapEXT" ], + "version" : "None" } ] }, @@ -13911,6 +13917,13 @@ "version" : "1.6" }, { + "enumerant" : "RayTracingOpacityMicromapEXT", + "value" : 5381, + "capabilities" : [ "RayQueryKHR","RayTracingKHR" ], + "extensions" : [ "SPV_KHR_ray_query","SPV_KHR_ray_tracing" ], + "version" : "None" + }, + { "enumerant" : "BindlessTextureNV", "value" : 5390, "extensions" : [ "SPV_NV_bindless_texture" ], diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs index 9a0b14f..0cf3d34 100644 --- a/include/spirv/unified1/spirv.cs +++ b/include/spirv/unified1/spirv.cs @@ -1062,6 +1062,7 @@ namespace Spv FragmentShaderPixelInterlockEXT = 5378, DemoteToHelperInvocation = 5379, DemoteToHelperInvocationEXT = 5379, + RayTracingOpacityMicromapEXT = 5381, BindlessTextureNV = 5390, SubgroupShuffleINTEL = 5568, SubgroupBufferBlockIOINTEL = 5569, @@ -1135,6 +1136,7 @@ namespace Spv CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, + ForceOpacityMicromap2StateEXT = 10, } public enum RayFlagsMask @@ -1150,6 +1152,7 @@ namespace Spv CullNoOpaqueKHR = 0x00000080, SkipTrianglesKHR = 0x00000100, SkipAABBsKHR = 0x00000200, + ForceOpacityMicromap2StateEXT = 0x00000400, } public enum RayQueryIntersection diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h index c3b1b3b..af4f06b 100644 --- a/include/spirv/unified1/spirv.h +++ b/include/spirv/unified1/spirv.h @@ -1062,6 +1062,7 @@ typedef enum SpvCapability_ { SpvCapabilityFragmentShaderPixelInterlockEXT = 5378, SpvCapabilityDemoteToHelperInvocation = 5379, SpvCapabilityDemoteToHelperInvocationEXT = 5379, + SpvCapabilityRayTracingOpacityMicromapEXT = 5381, SpvCapabilityBindlessTextureNV = 5390, SpvCapabilitySubgroupShuffleINTEL = 5568, SpvCapabilitySubgroupBufferBlockIOINTEL = 5569, @@ -1135,6 +1136,7 @@ typedef enum SpvRayFlagsShift_ { SpvRayFlagsCullNoOpaqueKHRShift = 7, SpvRayFlagsSkipTrianglesKHRShift = 8, SpvRayFlagsSkipAABBsKHRShift = 9, + SpvRayFlagsForceOpacityMicromap2StateEXTShift = 10, SpvRayFlagsMax = 0x7fffffff, } SpvRayFlagsShift; @@ -1150,6 +1152,7 @@ typedef enum SpvRayFlagsMask_ { SpvRayFlagsCullNoOpaqueKHRMask = 0x00000080, SpvRayFlagsSkipTrianglesKHRMask = 0x00000100, SpvRayFlagsSkipAABBsKHRMask = 0x00000200, + SpvRayFlagsForceOpacityMicromap2StateEXTMask = 0x00000400, } SpvRayFlagsMask; typedef enum SpvRayQueryIntersection_ { diff --git a/include/spirv/unified1/spirv.hpp b/include/spirv/unified1/spirv.hpp index 38813cc..b7ec5d7 100644 --- a/include/spirv/unified1/spirv.hpp +++ b/include/spirv/unified1/spirv.hpp @@ -1058,6 +1058,7 @@ enum Capability { CapabilityFragmentShaderPixelInterlockEXT = 5378, CapabilityDemoteToHelperInvocation = 5379, CapabilityDemoteToHelperInvocationEXT = 5379, + CapabilityRayTracingOpacityMicromapEXT = 5381, CapabilityBindlessTextureNV = 5390, CapabilitySubgroupShuffleINTEL = 5568, CapabilitySubgroupBufferBlockIOINTEL = 5569, @@ -1131,6 +1132,7 @@ enum RayFlagsShift { RayFlagsCullNoOpaqueKHRShift = 7, RayFlagsSkipTrianglesKHRShift = 8, RayFlagsSkipAABBsKHRShift = 9, + RayFlagsForceOpacityMicromap2StateEXTShift = 10, RayFlagsMax = 0x7fffffff, }; @@ -1146,6 +1148,7 @@ enum RayFlagsMask { RayFlagsCullNoOpaqueKHRMask = 0x00000080, RayFlagsSkipTrianglesKHRMask = 0x00000100, RayFlagsSkipAABBsKHRMask = 0x00000200, + RayFlagsForceOpacityMicromap2StateEXTMask = 0x00000400, }; enum RayQueryIntersection { diff --git a/include/spirv/unified1/spirv.hpp11 b/include/spirv/unified1/spirv.hpp11 index 10309fe..f0f5871 100644 --- a/include/spirv/unified1/spirv.hpp11 +++ b/include/spirv/unified1/spirv.hpp11 @@ -1058,6 +1058,7 @@ enum class Capability : unsigned { FragmentShaderPixelInterlockEXT = 5378, DemoteToHelperInvocation = 5379, DemoteToHelperInvocationEXT = 5379, + RayTracingOpacityMicromapEXT = 5381, BindlessTextureNV = 5390, SubgroupShuffleINTEL = 5568, SubgroupBufferBlockIOINTEL = 5569, @@ -1131,6 +1132,7 @@ enum class RayFlagsShift : unsigned { CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, + ForceOpacityMicromap2StateEXT = 10, Max = 0x7fffffff, }; @@ -1146,6 +1148,7 @@ enum class RayFlagsMask : unsigned { CullNoOpaqueKHR = 0x00000080, SkipTrianglesKHR = 0x00000100, SkipAABBsKHR = 0x00000200, + ForceOpacityMicromap2StateEXT = 0x00000400, }; enum class RayQueryIntersection : unsigned { diff --git a/include/spirv/unified1/spirv.json b/include/spirv/unified1/spirv.json index ebd09ee..466f0b0 100644 --- a/include/spirv/unified1/spirv.json +++ b/include/spirv/unified1/spirv.json @@ -1040,6 +1040,7 @@ "FragmentShaderPixelInterlockEXT": 5378, "DemoteToHelperInvocation": 5379, "DemoteToHelperInvocationEXT": 5379, + "RayTracingOpacityMicromapEXT": 5381, "BindlessTextureNV": 5390, "SubgroupShuffleINTEL": 5568, "SubgroupBufferBlockIOINTEL": 5569, @@ -1115,7 +1116,8 @@ "CullOpaqueKHR": 6, "CullNoOpaqueKHR": 7, "SkipTrianglesKHR": 8, - "SkipAABBsKHR": 9 + "SkipAABBsKHR": 9, + "ForceOpacityMicromap2StateEXT": 10 } }, { diff --git a/include/spirv/unified1/spirv.lua b/include/spirv/unified1/spirv.lua index 1d784f7..b763c84 100644 --- a/include/spirv/unified1/spirv.lua +++ b/include/spirv/unified1/spirv.lua @@ -1020,6 +1020,7 @@ spv = { FragmentShaderPixelInterlockEXT = 5378, DemoteToHelperInvocation = 5379, DemoteToHelperInvocationEXT = 5379, + RayTracingOpacityMicromapEXT = 5381, BindlessTextureNV = 5390, SubgroupShuffleINTEL = 5568, SubgroupBufferBlockIOINTEL = 5569, @@ -1092,6 +1093,7 @@ spv = { CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, + ForceOpacityMicromap2StateEXT = 10, }, RayFlagsMask = { @@ -1106,6 +1108,7 @@ spv = { CullNoOpaqueKHR = 0x00000080, SkipTrianglesKHR = 0x00000100, SkipAABBsKHR = 0x00000200, + ForceOpacityMicromap2StateEXT = 0x00000400, }, RayQueryIntersection = { diff --git a/include/spirv/unified1/spirv.py b/include/spirv/unified1/spirv.py index 970649f..12e3401 100644 --- a/include/spirv/unified1/spirv.py +++ b/include/spirv/unified1/spirv.py @@ -1020,6 +1020,7 @@ spv = { 'FragmentShaderPixelInterlockEXT' : 5378, 'DemoteToHelperInvocation' : 5379, 'DemoteToHelperInvocationEXT' : 5379, + 'RayTracingOpacityMicromapEXT' : 5381, 'BindlessTextureNV' : 5390, 'SubgroupShuffleINTEL' : 5568, 'SubgroupBufferBlockIOINTEL' : 5569, @@ -1092,6 +1093,7 @@ spv = { 'CullNoOpaqueKHR' : 7, 'SkipTrianglesKHR' : 8, 'SkipAABBsKHR' : 9, + 'ForceOpacityMicromap2StateEXT' : 10, }, 'RayFlagsMask' : { @@ -1106,6 +1108,7 @@ spv = { 'CullNoOpaqueKHR' : 0x00000080, 'SkipTrianglesKHR' : 0x00000100, 'SkipAABBsKHR' : 0x00000200, + 'ForceOpacityMicromap2StateEXT' : 0x00000400, }, 'RayQueryIntersection' : { diff --git a/include/spirv/unified1/spv.d b/include/spirv/unified1/spv.d index a8c03ff..6462405 100644 --- a/include/spirv/unified1/spv.d +++ b/include/spirv/unified1/spv.d @@ -1065,6 +1065,7 @@ enum Capability : uint FragmentShaderPixelInterlockEXT = 5378, DemoteToHelperInvocation = 5379, DemoteToHelperInvocationEXT = 5379, + RayTracingOpacityMicromapEXT = 5381, BindlessTextureNV = 5390, SubgroupShuffleINTEL = 5568, SubgroupBufferBlockIOINTEL = 5569, @@ -1138,6 +1139,7 @@ enum RayFlagsShift : uint CullNoOpaqueKHR = 7, SkipTrianglesKHR = 8, SkipAABBsKHR = 9, + ForceOpacityMicromap2StateEXT = 10, } enum RayFlagsMask : uint @@ -1153,6 +1155,7 @@ enum RayFlagsMask : uint CullNoOpaqueKHR = 0x00000080, SkipTrianglesKHR = 0x00000100, SkipAABBsKHR = 0x00000200, + ForceOpacityMicromap2StateEXT = 0x00000400, } enum RayQueryIntersection : uint -- 2.7.4