-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathray_flags_section.txt
71 lines (64 loc) · 2.5 KB
/
ray_flags_section.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
(Add a new sub-section 3.RF, Ray Flags, adding a new table) ::
+
--
[[ray_flags]]
*3.RF, Ray Flags*
Flags controlling the properties of an *{instruction}* instruction
or for comparing against the *IncomingRayFlagsKHR* builtin.
See the client API specification for more details.
Despite being a mask and allowing multiple bits to be combined,
the following combinations are invalid:
* if more than one of these four bits are set:
*OpaqueKHR*, *NoOpaqueKHR*, *CullOpaqueKHR*, *CullNoOpaqueKHR*.
* if more than one of these three bits are set: *SkipTrianglesKHR*,
*CullBackFacingTrianglesKHR*, *CullFrontFacingTrianglesKHR*.
* if more than one of these two bits are set: *SkipTrianglesKHR*,
*SkipAABBsKHR*.
[cols="^1,15,5",options="header",width="80%"]
|====
2+^.^| Ray Flags | Enabling Capabilities
| 0 | *NoneKHR* +
No flags specified.
| *{capability}*
| 1 | *OpaqueKHR* +
Force all intersections with the trace to be opaque. +
See the Ray Opacity Culling section in the Vulkan API specification.
| *{capability}*
| 2 | *NoOpaqueKHR* +
Force all intersections with the trace to be non-opaque. +
See the Ray Opacity Culling section in the Vulkan API specification.
| *{capability}*
| 4 | *TerminateOnFirstHitKHR* +
Accept the first hit discovered. +
See the Ray Closest Hit Determination section in the Vulkan API specification.
| *{capability}*
| 8 | *SkipClosestHitShaderKHR* +
Do not execute a closest hit shader. +
See the Ray Result Determination section in the Vulkan API specification.
| *{capability}*
| 16 | *CullBackFacingTrianglesKHR* +
Do not intersect with the back face of triangles. +
See the Ray Face Culling section in the Vulkan API specification.
| *{capability}*
| 32 | *CullFrontFacingTrianglesKHR* +
Do not intersect with the front face of triangles. +
See the Ray Face Culling section in the Vulkan API specification.
| *{capability}*
| 64 | *CullOpaqueKHR* +
Do not intersect with opaque geometry. +
See the Ray Opacity Culling section in the Vulkan API specification.
| *{capability}*
| 128 | *CullNoOpaqueKHR* +
Do not intersect with non-opaque geometry. +
See the Ray Opacity Culling section in the Vulkan API specification.
| *{capability}*
| 256 | *SkipTrianglesKHR* +
Do not intersect with any triangle geometries.
See the Ray Primitive Culling section in the Vulkan API specification.
| *RayTraversalPrimitiveCullingKHR*
| 512 | *SkipAABBsKHR* +
Do not intersect with any aabb geometries.
See the Ray Primitive Culling section in the Vulkan API specification.
| *RayTraversalPrimitiveCullingKHR*
|====
--