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