1spv.ext.RayGenShader11.rgen
2// Module Version 10400
3// Generated by (magic number): 8000a
4// Id's are bound by 53
5
6                              Capability RayTracingKHR
7                              Extension  "SPV_KHR_ray_tracing"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint RayGenerationKHR 4  "main" 11 21 29 39 52
11                              Source GLSL 460
12                              SourceExtension  "GL_EXT_ray_tracing"
13                              Name 4  "main"
14                              Name 8  "lx"
15                              Name 11  "gl_LaunchIDEXT"
16                              Name 16  "ly"
17                              Name 20  "sx"
18                              Name 21  "gl_LaunchSizeEXT"
19                              Name 24  "sy"
20                              Name 29  "accEXT"
21                              Name 37  "block"
22                              MemberName 37(block) 0  "dir"
23                              MemberName 37(block) 1  "origin"
24                              Name 39  ""
25                              Name 52  "payload"
26                              Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
27                              Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
28                              Decorate 29(accEXT) DescriptorSet 0
29                              Decorate 29(accEXT) Binding 0
30                              MemberDecorate 37(block) 0 Offset 0
31                              MemberDecorate 37(block) 1 Offset 16
32                              Decorate 37(block) Block
33                              Decorate 39 DescriptorSet 0
34                              Decorate 39 Binding 1
35                              Decorate 52(payload) Location 1
36               2:             TypeVoid
37               3:             TypeFunction 2
38               6:             TypeInt 32 0
39               7:             TypePointer Function 6(int)
40               9:             TypeVector 6(int) 3
41              10:             TypePointer Input 9(ivec3)
4211(gl_LaunchIDEXT):     10(ptr) Variable Input
43              12:      6(int) Constant 0
44              13:             TypePointer Input 6(int)
45              17:      6(int) Constant 1
4621(gl_LaunchSizeEXT):     10(ptr) Variable Input
47              27:             TypeAccelerationStructureKHR
48              28:             TypePointer UniformConstant 27
49      29(accEXT):     28(ptr) Variable UniformConstant
50              35:             TypeFloat 32
51              36:             TypeVector 35(float) 3
52       37(block):             TypeStruct 36(fvec3) 36(fvec3)
53              38:             TypePointer ShaderRecordBufferKHR 37(block)
54              39:     38(ptr) Variable ShaderRecordBufferKHR
55              40:             TypeInt 32 1
56              41:     40(int) Constant 1
57              42:             TypePointer ShaderRecordBufferKHR 36(fvec3)
58              45:   35(float) Constant 1056964608
59              46:     40(int) Constant 0
60              49:   35(float) Constant 1061158912
61              50:             TypeVector 35(float) 4
62              51:             TypePointer RayPayloadKHR 50(fvec4)
63     52(payload):     51(ptr) Variable RayPayloadKHR
64         4(main):           2 Function None 3
65               5:             Label
66           8(lx):      7(ptr) Variable Function
67          16(ly):      7(ptr) Variable Function
68          20(sx):      7(ptr) Variable Function
69          24(sy):      7(ptr) Variable Function
70              14:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 12
71              15:      6(int) Load 14
72                              Store 8(lx) 15
73              18:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 17
74              19:      6(int) Load 18
75                              Store 16(ly) 19
76              22:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12
77              23:      6(int) Load 22
78                              Store 20(sx) 23
79              25:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17
80              26:      6(int) Load 25
81                              Store 24(sy) 26
82              30:          27 Load 29(accEXT)
83              31:      6(int) Load 8(lx)
84              32:      6(int) Load 16(ly)
85              33:      6(int) Load 20(sx)
86              34:      6(int) Load 24(sy)
87              43:     42(ptr) AccessChain 39 41
88              44:   36(fvec3) Load 43
89              47:     42(ptr) AccessChain 39 46
90              48:   36(fvec3) Load 47
91                              TraceRayKHR 30 31 32 33 34 12 44 45 48 49 52(payload)
92                              Return
93                              FunctionEnd
94