2222
2323Version
2424
25- Last Modified Date: 2020-03-06
26- Revision: 5
25+ Last Modified Date: 2020-04-01
26+ Revision: 6
2727
2828Dependencies
2929
@@ -38,6 +38,8 @@ Dependencies
3838
3939 This extension interacts with GLSL_EXT_ray_tracing.
4040
41+ This extension interacts with GLSL_EXT_ray_flags_primitive_culling.
42+
4143Overview
4244
4345 This extension document modifies GLSL to add support for ray tracing
@@ -69,8 +71,6 @@ Overview
6971 gl_RayFlagsCullFrontFacingTrianglesEXT -> CullFrontFacingTrianglesKHR ray flag
7072 gl_RayFlagsCullOpaqueEXT -> CullOpaqueKHR ray flag
7173 gl_RayFlagsCullNoOpaqueEXT -> CullNoOpaqueKHR ray flag
72- gl_RayFlagsSkipTrianglesEXT -> SkipTrianglesKHR ray flag
73- gl_RayFlagsSkipAABBEXT -> SkipAABBsKHR ray flag
7474
7575 gl_RayQueryCommittedIntersectionEXT -> RayQueryCommittedIntersectionKHR enum
7676 gl_RayQueryCandidateIntersectionEXT -> RayQueryCandidateIntersectionKHR enum
@@ -111,11 +111,6 @@ Overview
111111 rayQueryGetIntersectionObjectToWorldEXT -> OpRayQueryGetIntersectionObjectToWorldKHR instruction
112112 rayQueryGetIntersectionWorldToObjectEXT -> OpRayQueryGetIntersectionWorldToObjectKHR instruction
113113
114- In addition, using this extension defines the <RayQueryProvisionalKHR>
115- capability.
116- Using the gl_RayFlagsSkipAABBEXT or gl_RayFlagsSkipTrianglesEXT flags
117- defines the <RayTraversalPrimitiveCullingProvisionalKHR> capability.
118-
119114Modifications to the OpenGL Shading Language Specification, Version 4.60
120115
121116 Including the following line in a shader can be used to control the
@@ -211,8 +206,6 @@ Additions to Chapter 7 of the OpenGL Shading Language Specification
211206 const uint gl_RayFlagsCullFrontFacingTrianglesEXT = 32U;
212207 const uint gl_RayFlagsCullOpaqueEXT = 64U;
213208 const uint gl_RayFlagsCullNoOpaqueEXT = 128U;
214- const uint gl_RayFlagsSkipTrianglesEXT = 256U;
215- const uint gl_RayFlagsSkipAABBEXT = 512U;
216209
217210 These can be used as flags for the 'rayflags' argument for
218211 traceRayEXT()/rayQueryInitializeEXT() call or for comparing values to
@@ -465,6 +458,12 @@ Interactions with GLSL_EXT_ray_tracing
465458 definitions, and can be enabled by either extension, for use with the
466459 instructions added by that extension.
467460
461+ Interactions with GL_EXT_ray_flags_primitive_culling
462+
463+ If GL_EXT_ray_flags_primitive_culling is supported, ray flags added
464+ by this extension can be used as flags for the 'rayflags' argument
465+ for rayQueryInitializeEXT() call, or the result of rayQueryGetRayFlagsEXT.
466+
468467Issues
469468
470469 TBD
@@ -478,3 +477,4 @@ Revision History
478477 3 2020-02-12 tobias Updates as per vulkan issue 1989 to better represent mapping to SPIR-V
479478 4 2020-02-25 tobias Added missing (and fairly important!) rayQueryGetIntersectionTEXT
480479 5 2020-03-06 alele Rename RayWorld to WorldRay for some builtins (#20), fix typo (!50)
480+ 6 2020-04-01 alele Remove primitive culling ray flags (vulkan issue 2073)
0 commit comments