• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1rayQuery-types.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 86
5
6                              Capability Shader
7                              Capability RayQueryKHR
8                              Extension  "SPV_KHR_ray_query"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint GLCompute 4  "main"
12                              ExecutionMode 4 LocalSize 16 8 1
13                              Source GLSL 460
14                              SourceExtension  "GL_EXT_ray_query"
15                              Name 4  "main"
16                              Name 8  "rayQuery"
17                              Name 11  "tlas"
18                              Name 25  "rq_proceed"
19                              Name 35  "intersectionType"
20                              Name 41  "rayTMin"
21                              Name 43  "rayFlags"
22                              Name 46  "worldRayOrigin"
23                              Name 48  "worldDirection"
24                              Name 50  "intersectionT"
25                              Name 53  "customIndex"
26                              Name 55  "instanceId"
27                              Name 57  "sbtOffset"
28                              Name 59  "geometryIndex"
29                              Name 61  "primitiveIndex"
30                              Name 65  "barys"
31                              Name 67  "frontface"
32                              Name 69  "aabbOpaque"
33                              Name 71  "objRayDirection"
34                              Name 73  "objRayOrigin"
35                              Name 77  "objToWorld"
36                              Name 79  "worldToObj"
37                              Decorate 11(tlas) DescriptorSet 0
38                              Decorate 11(tlas) Binding 0
39                              Decorate 85 BuiltIn WorkgroupSize
40               2:             TypeVoid
41               3:             TypeFunction 2
42               6:             TypeRayQueryKHR
43               7:             TypePointer Private 6
44     8(rayQuery):      7(ptr) Variable Private
45               9:             TypeAccelerationStructureKHR
46              10:             TypePointer UniformConstant 9
47        11(tlas):     10(ptr) Variable UniformConstant
48              13:             TypeInt 32 0
49              14:     13(int) Constant 0
50              15:     13(int) Constant 255
51              16:             TypeFloat 32
52              17:             TypeVector 16(float) 3
53              18:   16(float) Constant 0
54              19:   17(fvec3) ConstantComposite 18 18 18
55              20:   16(float) Constant 1065353216
56              21:   17(fvec3) ConstantComposite 20 18 18
57              22:   16(float) Constant 1176256512
58              23:             TypeBool
59              24:             TypePointer Function 23(bool)
60              34:             TypePointer Function 13(int)
61              36:    23(bool) ConstantTrue
62              37:             TypeInt 32 1
63              38:     37(int) Constant 1
64              40:             TypePointer Function 16(float)
65              45:             TypePointer Function 17(fvec3)
66              52:             TypePointer Function 37(int)
67              63:             TypeVector 16(float) 2
68              64:             TypePointer Function 63(fvec2)
69              75:             TypeMatrix 17(fvec3) 4
70              76:             TypePointer Function 75
71              81:             TypeVector 13(int) 3
72              82:     13(int) Constant 16
73              83:     13(int) Constant 8
74              84:     13(int) Constant 1
75              85:   81(ivec3) ConstantComposite 82 83 84
76         4(main):           2 Function None 3
77               5:             Label
78  25(rq_proceed):     24(ptr) Variable Function
7935(intersectionType):     34(ptr) Variable Function
80     41(rayTMin):     40(ptr) Variable Function
81    43(rayFlags):     34(ptr) Variable Function
8246(worldRayOrigin):     45(ptr) Variable Function
8348(worldDirection):     45(ptr) Variable Function
8450(intersectionT):     40(ptr) Variable Function
85 53(customIndex):     52(ptr) Variable Function
86  55(instanceId):     52(ptr) Variable Function
87   57(sbtOffset):     34(ptr) Variable Function
8859(geometryIndex):     52(ptr) Variable Function
8961(primitiveIndex):     52(ptr) Variable Function
90       65(barys):     64(ptr) Variable Function
91   67(frontface):     24(ptr) Variable Function
92  69(aabbOpaque):     24(ptr) Variable Function
9371(objRayDirection):     45(ptr) Variable Function
9473(objRayOrigin):     45(ptr) Variable Function
95  77(objToWorld):     76(ptr) Variable Function
96  79(worldToObj):     76(ptr) Variable Function
97              12:           9 Load 11(tlas)
98                              RayQueryInitializeKHR 8(rayQuery) 12 14 15 19 18 21 22
99              26:    23(bool) RayQueryProceedKHR 8(rayQuery)
100                              Store 25(rq_proceed) 26
101                              Branch 27
102              27:             Label
103                              LoopMerge 29 30 None
104                              Branch 31
105              31:             Label
106              32:    23(bool) Load 25(rq_proceed)
107                              BranchConditional 32 28 29
108              28:               Label
109              33:    23(bool)   RayQueryProceedKHR 8(rayQuery)
110                                Store 25(rq_proceed) 33
111                                Branch 30
112              30:               Label
113                                Branch 27
114              29:             Label
115              39:     13(int) RayQueryGetIntersectionTypeKHR 8(rayQuery) 38
116                              Store 35(intersectionType) 39
117              42:   16(float) RayQueryGetRayTMinKHR 8(rayQuery)
118                              Store 41(rayTMin) 42
119              44:     13(int) RayQueryGetRayFlagsKHR 8(rayQuery)
120                              Store 43(rayFlags) 44
121              47:   17(fvec3) RayQueryGetWorldRayOriginKHR 8(rayQuery)
122                              Store 46(worldRayOrigin) 47
123              49:   17(fvec3) RayQueryGetWorldRayDirectionKHR 8(rayQuery)
124                              Store 48(worldDirection) 49
125              51:   16(float) RayQueryGetIntersectionTKHR 8(rayQuery) 38
126                              Store 50(intersectionT) 51
127              54:     37(int) RayQueryGetIntersectionInstanceCustomIndexKHR 8(rayQuery) 38
128                              Store 53(customIndex) 54
129              56:     37(int) RayQueryGetIntersectionInstanceIdKHR 8(rayQuery) 38
130                              Store 55(instanceId) 56
131              58:     13(int) RayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR 8(rayQuery) 38
132                              Store 57(sbtOffset) 58
133              60:     37(int) RayQueryGetIntersectionGeometryIndexKHR 8(rayQuery) 38
134                              Store 59(geometryIndex) 60
135              62:     37(int) RayQueryGetIntersectionPrimitiveIndexKHR 8(rayQuery) 38
136                              Store 61(primitiveIndex) 62
137              66:   63(fvec2) RayQueryGetIntersectionBarycentricsKHR 8(rayQuery) 38
138                              Store 65(barys) 66
139              68:    23(bool) RayQueryGetIntersectionFrontFaceKHR 8(rayQuery) 38
140                              Store 67(frontface) 68
141              70:    23(bool) RayQueryGetIntersectionCandidateAABBOpaqueKHR 8(rayQuery)
142                              Store 69(aabbOpaque) 70
143              72:   17(fvec3) RayQueryGetIntersectionObjectRayDirectionKHR 8(rayQuery) 38
144                              Store 71(objRayDirection) 72
145              74:   17(fvec3) RayQueryGetIntersectionObjectRayOriginKHR 8(rayQuery) 38
146                              Store 73(objRayOrigin) 74
147              78:          75 RayQueryGetIntersectionObjectToWorldKHR 8(rayQuery) 38
148                              Store 77(objToWorld) 78
149              80:          75 RayQueryGetIntersectionWorldToObjectKHR 8(rayQuery) 38
150                              Store 79(worldToObj) 80
151                              Return
152                              FunctionEnd
153