• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.ext.World3x4.rahit
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 90
5
6                              Capability RayTracingKHR
7                              Extension  "SPV_KHR_ray_tracing"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint AnyHitKHR 4  "main" 43 60 78 87 89
11                              Source GLSL 460
12                              SourceExtension  "GL_EXT_ray_tracing"
13                              Name 4  "main"
14                              Name 8  "k"
15                              Name 12  "ndx"
16                              Name 14  "col"
17                              Name 25  "row"
18                              Name 39  "p"
19                              Name 43  "gl_LaunchIDEXT"
20                              Name 53  "r"
21                              Name 60  "gl_WorldToObject3x4EXT"
22                              Name 66  "indexable"
23                              Name 72  "c"
24                              Name 78  "result"
25                              Name 87  "attribs"
26                              Name 89  "hitValue"
27                              Decorate 43(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
28                              Decorate 60(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR
29                              Decorate 78(result) DescriptorSet 0
30                              Decorate 78(result) Binding 0
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeFloat 32
34               7:             TypePointer Function 6(float)
35               9:    6(float) Constant 1233125376
36              10:             TypeInt 32 1
37              11:             TypePointer Function 10(int)
38              13:     10(int) Constant 4294967295
39              15:     10(int) Constant 0
40              22:     10(int) Constant 3
41              23:             TypeBool
42              32:     10(int) Constant 4
43              35:     10(int) Constant 1
44              37:             TypeVector 10(int) 3
45              38:             TypePointer Function 37(ivec3)
46              40:             TypeInt 32 0
47              41:             TypeVector 40(int) 3
48              42:             TypePointer Input 41(ivec3)
4943(gl_LaunchIDEXT):     42(ptr) Variable Input
50              44:             TypeVector 40(int) 2
51              47:             TypeVector 10(int) 2
52              55:             TypeVector 6(float) 3
53              56:             TypeMatrix 55(fvec3) 4
54              57:             TypeVector 6(float) 4
55              58:             TypeMatrix 57(fvec4) 3
56              59:             TypePointer Input 56
5760(gl_WorldToObject3x4EXT):     59(ptr) Variable Input
58              65:             TypePointer Function 58
59              70:             TypeVector 10(int) 4
60              71:             TypePointer Function 70(ivec4)
61              76:             TypeImage 10(int) 3D nonsampled format:R32i
62              77:             TypePointer UniformConstant 76
63      78(result):     77(ptr) Variable UniformConstant
64              86:             TypePointer HitAttributeKHR 55(fvec3)
65     87(attribs):     86(ptr) Variable HitAttributeKHR
66              88:             TypePointer IncomingRayPayloadKHR 55(fvec3)
67    89(hitValue):     88(ptr) Variable IncomingRayPayloadKHR
68         4(main):           2 Function None 3
69               5:             Label
70            8(k):      7(ptr) Variable Function
71         12(ndx):     11(ptr) Variable Function
72         14(col):     11(ptr) Variable Function
73         25(row):     11(ptr) Variable Function
74           39(p):     38(ptr) Variable Function
75           53(r):      7(ptr) Variable Function
76   66(indexable):     65(ptr) Variable Function
77           72(c):     71(ptr) Variable Function
78                              Store 8(k) 9
79                              Store 12(ndx) 13
80                              Store 14(col) 15
81                              Branch 16
82              16:             Label
83                              LoopMerge 18 19 None
84                              Branch 20
85              20:             Label
86              21:     10(int) Load 14(col)
87              24:    23(bool) SLessThan 21 22
88                              BranchConditional 24 17 18
89              17:               Label
90                                Store 25(row) 15
91                                Branch 26
92              26:               Label
93                                LoopMerge 28 29 None
94                                Branch 30
95              30:               Label
96              31:     10(int)   Load 25(row)
97              33:    23(bool)   SLessThan 31 32
98                                BranchConditional 33 27 28
99              27:                 Label
100              34:     10(int)     Load 12(ndx)
101              36:     10(int)     IAdd 34 35
102                                  Store 12(ndx) 36
103              45:   41(ivec3)     Load 43(gl_LaunchIDEXT)
104              46:   44(ivec2)     VectorShuffle 45 45 0 1
105              48:   47(ivec2)     Bitcast 46
106              49:     10(int)     Load 12(ndx)
107              50:     10(int)     CompositeExtract 48 0
108              51:     10(int)     CompositeExtract 48 1
109              52:   37(ivec3)     CompositeConstruct 50 51 49
110                                  Store 39(p) 52
111              54:    6(float)     Load 8(k)
112              61:          56     Load 60(gl_WorldToObject3x4EXT)
113              62:          58     Transpose 61
114              63:     10(int)     Load 14(col)
115              64:     10(int)     Load 25(row)
116                                  Store 66(indexable) 62
117              67:      7(ptr)     AccessChain 66(indexable) 63 64
118              68:    6(float)     Load 67
119              69:    6(float)     FMul 54 68
120                                  Store 53(r) 69
121              73:    6(float)     Load 53(r)
122              74:     10(int)     ConvertFToS 73
123              75:   70(ivec4)     CompositeConstruct 74 15 15 35
124                                  Store 72(c) 75
125              79:          76     Load 78(result)
126              80:   37(ivec3)     Load 39(p)
127              81:   70(ivec4)     Load 72(c)
128                                  ImageWrite 79 80 81 SignExtend
129                                  Branch 29
130              29:                 Label
131              82:     10(int)     Load 25(row)
132              83:     10(int)     IAdd 82 35
133                                  Store 25(row) 83
134                                  Branch 26
135              28:               Label
136                                Branch 19
137              19:               Label
138              84:     10(int)   Load 14(col)
139              85:     10(int)   IAdd 84 35
140                                Store 14(col) 85
141                                Branch 16
142              18:             Label
143                              Return
144                              FunctionEnd
145