• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.ext.RayGenShaderArray.rgen
2// Module Version 10400
3// Generated by (magic number): 8000a
4// Id's are bound by 89
5
6                              Capability ShaderNonUniformEXT
7                              Capability RuntimeDescriptorArrayEXT
8                              Capability RayTracingProvisionalKHR
9                              Extension  "SPV_EXT_descriptor_indexing"
10                              Extension  "SPV_KHR_ray_tracing"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint RayGenerationKHR 4  "main" 11 21 30 36 60 88
14                              Source GLSL 460
15                              SourceExtension  "GL_EXT_nonuniform_qualifier"
16                              SourceExtension  "GL_EXT_ray_tracing"
17                              Name 4  "main"
18                              Name 8  "lx"
19                              Name 11  "gl_LaunchIDEXT"
20                              Name 16  "ly"
21                              Name 20  "sx"
22                              Name 21  "gl_LaunchSizeEXT"
23                              Name 24  "sy"
24                              Name 30  "accEXT0"
25                              Name 34  "block"
26                              MemberName 34(block) 0  "dir"
27                              MemberName 34(block) 1  "origin"
28                              MemberName 34(block) 2  "i"
29                              Name 36  ""
30                              Name 60  "accEXT1"
31                              Name 88  "payload"
32                              Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
33                              Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
34                              Decorate 30(accEXT0) DescriptorSet 0
35                              Decorate 30(accEXT0) Binding 0
36                              MemberDecorate 34(block) 0 Offset 0
37                              MemberDecorate 34(block) 1 Offset 16
38                              MemberDecorate 34(block) 2 Offset 28
39                              Decorate 34(block) Block
40                              Decorate 36 DescriptorSet 0
41                              Decorate 36 Binding 2
42                              Decorate 60(accEXT1) DescriptorSet 0
43                              Decorate 60(accEXT1) Binding 1
44                              Decorate 75 DecorationNonUniformEXT
45                              Decorate 76 DecorationNonUniformEXT
46                              Decorate 77 DecorationNonUniformEXT
47                              Decorate 88(payload) Location 0
48               2:             TypeVoid
49               3:             TypeFunction 2
50               6:             TypeInt 32 0
51               7:             TypePointer Function 6(int)
52               9:             TypeVector 6(int) 3
53              10:             TypePointer Input 9(ivec3)
5411(gl_LaunchIDEXT):     10(ptr) Variable Input
55              12:      6(int) Constant 0
56              13:             TypePointer Input 6(int)
57              17:      6(int) Constant 1
5821(gl_LaunchSizeEXT):     10(ptr) Variable Input
59              27:             TypeAccelerationStructureKHR
60              28:             TypeRuntimeArray 27
61              29:             TypePointer UniformConstant 28
62     30(accEXT0):     29(ptr) Variable UniformConstant
63              31:             TypeFloat 32
64              32:             TypeVector 31(float) 3
65              33:             TypeInt 32 1
66       34(block):             TypeStruct 32(fvec3) 32(fvec3) 33(int)
67              35:             TypePointer ShaderRecordBufferKHR 34(block)
68              36:     35(ptr) Variable ShaderRecordBufferKHR
69              37:     33(int) Constant 2
70              38:             TypePointer ShaderRecordBufferKHR 33(int)
71              41:             TypePointer UniformConstant 27
72              48:     33(int) Constant 1
73              49:             TypePointer ShaderRecordBufferKHR 32(fvec3)
74              52:   31(float) Constant 1056964608
75              53:     33(int) Constant 0
76              56:   31(float) Constant 1061158912
77              57:      6(int) Constant 2
78              58:             TypeArray 27 57
79              59:             TypePointer UniformConstant 58
80     60(accEXT1):     59(ptr) Variable UniformConstant
81              86:             TypeVector 31(float) 4
82              87:             TypePointer RayPayloadKHR 86(fvec4)
83     88(payload):     87(ptr) Variable RayPayloadKHR
84         4(main):           2 Function None 3
85               5:             Label
86           8(lx):      7(ptr) Variable Function
87          16(ly):      7(ptr) Variable Function
88          20(sx):      7(ptr) Variable Function
89          24(sy):      7(ptr) Variable Function
90              14:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 12
91              15:      6(int) Load 14
92                              Store 8(lx) 15
93              18:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 17
94              19:      6(int) Load 18
95                              Store 16(ly) 19
96              22:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12
97              23:      6(int) Load 22
98                              Store 20(sx) 23
99              25:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17
100              26:      6(int) Load 25
101                              Store 24(sy) 26
102              39:     38(ptr) AccessChain 36 37
103              40:     33(int) Load 39
104              42:     41(ptr) AccessChain 30(accEXT0) 40
105              43:          27 Load 42
106              44:      6(int) Load 8(lx)
107              45:      6(int) Load 16(ly)
108              46:      6(int) Load 20(sx)
109              47:      6(int) Load 24(sy)
110              50:     49(ptr) AccessChain 36 48
111              51:   32(fvec3) Load 50
112              54:     49(ptr) AccessChain 36 53
113              55:   32(fvec3) Load 54
114                              TraceRayKHR 43 44 45 46 47 12 51 52 55 56 48
115              61:     38(ptr) AccessChain 36 37
116              62:     33(int) Load 61
117              63:     41(ptr) AccessChain 60(accEXT1) 62
118              64:          27 Load 63
119              65:      6(int) Load 8(lx)
120              66:      6(int) Load 16(ly)
121              67:      6(int) Load 20(sx)
122              68:      6(int) Load 24(sy)
123              69:     49(ptr) AccessChain 36 48
124              70:   32(fvec3) Load 69
125              71:     49(ptr) AccessChain 36 53
126              72:   32(fvec3) Load 71
127                              TraceRayKHR 64 65 66 67 68 12 70 52 72 56 48
128              73:     38(ptr) AccessChain 36 37
129              74:     33(int) Load 73
130              75:     33(int) CopyObject 74
131              76:     41(ptr) AccessChain 30(accEXT0) 75
132              77:          27 Load 76
133              78:      6(int) Load 8(lx)
134              79:      6(int) Load 16(ly)
135              80:      6(int) Load 20(sx)
136              81:      6(int) Load 24(sy)
137              82:     49(ptr) AccessChain 36 48
138              83:   32(fvec3) Load 82
139              84:     49(ptr) AccessChain 36 53
140              85:   32(fvec3) Load 84
141                              TraceRayKHR 77 78 79 80 81 12 83 52 85 56 48
142                              Return
143                              FunctionEnd
144