1rayQuery-initialize.rgen
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 103
5
6                              Capability RayQueryKHR
7                              Capability RayTracingNV
8                              Extension  "SPV_KHR_ray_query"
9                              Extension  "SPV_NV_ray_tracing"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel Logical GLSL450
12                              EntryPoint RayGenerationKHR 4  "main" 23 28
13                              Source GLSL 460
14                              SourceExtension  "GL_EXT_ray_query"
15                              SourceExtension  "GL_NV_ray_tracing"
16                              Name 4  "main"
17                              Name 8  "launchIndex("
18                              Name 14  "Ray"
19                              MemberName 14(Ray) 0  "pos"
20                              MemberName 14(Ray) 1  "tmin"
21                              MemberName 14(Ray) 2  "dir"
22                              MemberName 14(Ray) 3  "tmax"
23                              Name 19  "doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;"
24                              Name 17  "rayQuery"
25                              Name 18  "ray"
26                              Name 23  "gl_LaunchIDNV"
27                              Name 28  "gl_LaunchSizeNV"
28                              Name 50  "rtas"
29                              Name 69  "index"
30                              Name 71  "ray"
31                              Name 72  "Ray"
32                              MemberName 72(Ray) 0  "pos"
33                              MemberName 72(Ray) 1  "tmin"
34                              MemberName 72(Ray) 2  "dir"
35                              MemberName 72(Ray) 3  "tmax"
36                              Name 74  "Rays"
37                              MemberName 74(Rays) 0  "rays"
38                              Name 76  ""
39                              Name 89  "rayQuery"
40                              Name 90  "param"
41                              Decorate 23(gl_LaunchIDNV) BuiltIn LaunchIdKHR
42                              Decorate 28(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
43                              Decorate 50(rtas) DescriptorSet 0
44                              Decorate 50(rtas) Binding 0
45                              MemberDecorate 72(Ray) 0 Offset 0
46                              MemberDecorate 72(Ray) 1 Offset 12
47                              MemberDecorate 72(Ray) 2 Offset 16
48                              MemberDecorate 72(Ray) 3 Offset 28
49                              Decorate 73 ArrayStride 32
50                              MemberDecorate 74(Rays) 0 Offset 0
51                              Decorate 74(Rays) BufferBlock
52                              Decorate 76 DescriptorSet 0
53                              Decorate 76 Binding 2
54               2:             TypeVoid
55               3:             TypeFunction 2
56               6:             TypeInt 32 0
57               7:             TypeFunction 6(int)
58              10:             TypeRayQueryKHR
59              11:             TypePointer Private 10
60              12:             TypeFloat 32
61              13:             TypeVector 12(float) 3
62         14(Ray):             TypeStruct 13(fvec3) 12(float) 13(fvec3) 12(float)
63              15:             TypePointer Function 14(Ray)
64              16:             TypeFunction 2 11(ptr) 15(ptr)
65              21:             TypeVector 6(int) 3
66              22:             TypePointer Input 21(ivec3)
6723(gl_LaunchIDNV):     22(ptr) Variable Input
68              24:      6(int) Constant 2
69              25:             TypePointer Input 6(int)
7028(gl_LaunchSizeNV):     22(ptr) Variable Input
71              29:      6(int) Constant 0
72              33:      6(int) Constant 1
73              48:             TypeAccelerationStructureKHR
74              49:             TypePointer UniformConstant 48
75        50(rtas):     49(ptr) Variable UniformConstant
76              52:      6(int) Constant 16
77              53:             TypeInt 32 1
78              54:     53(int) Constant 0
79              55:             TypePointer Function 13(fvec3)
80              58:     53(int) Constant 1
81              59:             TypePointer Function 12(float)
82              62:     53(int) Constant 2
83              65:     53(int) Constant 3
84              68:             TypePointer Function 6(int)
85         72(Ray):             TypeStruct 13(fvec3) 12(float) 13(fvec3) 12(float)
86              73:             TypeRuntimeArray 72(Ray)
87        74(Rays):             TypeStruct 73
88              75:             TypePointer Uniform 74(Rays)
89              76:     75(ptr) Variable Uniform
90              78:             TypePointer Uniform 72(Ray)
91    89(rayQuery):     11(ptr) Variable Private
92              94:      6(int) Constant 32
93         4(main):           2 Function None 3
94               5:             Label
95       69(index):     68(ptr) Variable Function
96         71(ray):     15(ptr) Variable Function
97       90(param):     15(ptr) Variable Function
98              70:      6(int) FunctionCall 8(launchIndex()
99                              Store 69(index) 70
100              77:      6(int) Load 69(index)
101              79:     78(ptr) AccessChain 76 54 77
102              80:     72(Ray) Load 79
103              81:   13(fvec3) CompositeExtract 80 0
104              82:     55(ptr) AccessChain 71(ray) 54
105                              Store 82 81
106              83:   12(float) CompositeExtract 80 1
107              84:     59(ptr) AccessChain 71(ray) 58
108                              Store 84 83
109              85:   13(fvec3) CompositeExtract 80 2
110              86:     55(ptr) AccessChain 71(ray) 62
111                              Store 86 85
112              87:   12(float) CompositeExtract 80 3
113              88:     59(ptr) AccessChain 71(ray) 65
114                              Store 88 87
115              91:     14(Ray) Load 71(ray)
116                              Store 90(param) 91
117              92:           2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 89(rayQuery) 90(param)
118              93:          48 Load 50(rtas)
119              95:     55(ptr) AccessChain 71(ray) 54
120              96:   13(fvec3) Load 95
121              97:     59(ptr) AccessChain 71(ray) 58
122              98:   12(float) Load 97
123              99:     55(ptr) AccessChain 71(ray) 62
124             100:   13(fvec3) Load 99
125             101:     59(ptr) AccessChain 71(ray) 65
126             102:   12(float) Load 101
127                              RayQueryInitializeKHR 89(rayQuery) 93 33 94 96 98 100 102
128                              Return
129                              FunctionEnd
130 8(launchIndex():      6(int) Function None 7
131               9:             Label
132              26:     25(ptr) AccessChain 23(gl_LaunchIDNV) 24
133              27:      6(int) Load 26
134              30:     25(ptr) AccessChain 28(gl_LaunchSizeNV) 29
135              31:      6(int) Load 30
136              32:      6(int) IMul 27 31
137              34:     25(ptr) AccessChain 28(gl_LaunchSizeNV) 33
138              35:      6(int) Load 34
139              36:      6(int) IMul 32 35
140              37:     25(ptr) AccessChain 23(gl_LaunchIDNV) 33
141              38:      6(int) Load 37
142              39:     25(ptr) AccessChain 28(gl_LaunchSizeNV) 29
143              40:      6(int) Load 39
144              41:      6(int) IMul 38 40
145              42:      6(int) IAdd 36 41
146              43:     25(ptr) AccessChain 23(gl_LaunchIDNV) 29
147              44:      6(int) Load 43
148              45:      6(int) IAdd 42 44
149                              ReturnValue 45
150                              FunctionEnd
15119(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;):           2 Function None 16
152    17(rayQuery):     11(ptr) FunctionParameter
153         18(ray):     15(ptr) FunctionParameter
154              20:             Label
155              51:          48 Load 50(rtas)
156              56:     55(ptr) AccessChain 18(ray) 54
157              57:   13(fvec3) Load 56
158              60:     59(ptr) AccessChain 18(ray) 58
159              61:   12(float) Load 60
160              63:     55(ptr) AccessChain 18(ray) 62
161              64:   13(fvec3) Load 63
162              66:     59(ptr) AccessChain 18(ray) 65
163              67:   12(float) Load 66
164                              RayQueryInitializeKHR 17(rayQuery) 51 29 52 57 61 64 67
165                              Return
166                              FunctionEnd
167