• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.ext.IntersectShader.rint
2// Module Version 10400
3// Generated by (magic number): 8000a
4// Id's are bound by 81
5
6                              Capability RayTracingKHR
7                              Extension  "SPV_KHR_ray_tracing"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint IntersectionKHR 4  "main" 11 14 20 23 26 33 36 39 42 47 50 56 59 65 69 73
11                              Source GLSL 460
12                              SourceExtension  "GL_EXT_ray_tracing"
13                              Name 4  "main"
14                              Name 9  "v0"
15                              Name 11  "gl_LaunchIDEXT"
16                              Name 13  "v1"
17                              Name 14  "gl_LaunchSizeEXT"
18                              Name 18  "v2"
19                              Name 20  "gl_PrimitiveID"
20                              Name 22  "v3"
21                              Name 23  "gl_InstanceID"
22                              Name 25  "v4"
23                              Name 26  "gl_InstanceCustomIndexEXT"
24                              Name 31  "v5"
25                              Name 33  "gl_WorldRayOriginEXT"
26                              Name 35  "v6"
27                              Name 36  "gl_WorldRayDirectionEXT"
28                              Name 38  "v7"
29                              Name 39  "gl_ObjectRayOriginEXT"
30                              Name 41  "v8"
31                              Name 42  "gl_ObjectRayDirectionEXT"
32                              Name 45  "v9"
33                              Name 47  "gl_RayTminEXT"
34                              Name 49  "v10"
35                              Name 50  "gl_RayTmaxEXT"
36                              Name 54  "v11"
37                              Name 56  "gl_ObjectToWorldEXT"
38                              Name 58  "v12"
39                              Name 59  "gl_WorldToObjectEXT"
40                              Name 64  "v13"
41                              Name 65  "gl_ObjectToWorld3x4EXT"
42                              Name 68  "v14"
43                              Name 69  "gl_WorldToObject3x4EXT"
44                              Name 73  "iAttr"
45                              Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
46                              Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
47                              Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
48                              Decorate 23(gl_InstanceID) BuiltIn InstanceId
49                              Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR
50                              Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR
51                              Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR
52                              Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR
53                              Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR
54                              Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR
55                              Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR
56                              Decorate 50(gl_RayTmaxEXT) Volatile
57                              Decorate 50(gl_RayTmaxEXT) Coherent
58                              Decorate 56(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR
59                              Decorate 59(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR
60                              Decorate 65(gl_ObjectToWorld3x4EXT) BuiltIn ObjectToWorldKHR
61                              Decorate 69(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR
62               2:             TypeVoid
63               3:             TypeFunction 2
64               6:             TypeInt 32 0
65               7:             TypeVector 6(int) 3
66               8:             TypePointer Function 7(ivec3)
67              10:             TypePointer Input 7(ivec3)
6811(gl_LaunchIDEXT):     10(ptr) Variable Input
6914(gl_LaunchSizeEXT):     10(ptr) Variable Input
70              16:             TypeInt 32 1
71              17:             TypePointer Function 16(int)
72              19:             TypePointer Input 16(int)
7320(gl_PrimitiveID):     19(ptr) Variable Input
7423(gl_InstanceID):     19(ptr) Variable Input
7526(gl_InstanceCustomIndexEXT):     19(ptr) Variable Input
76              28:             TypeFloat 32
77              29:             TypeVector 28(float) 3
78              30:             TypePointer Function 29(fvec3)
79              32:             TypePointer Input 29(fvec3)
8033(gl_WorldRayOriginEXT):     32(ptr) Variable Input
8136(gl_WorldRayDirectionEXT):     32(ptr) Variable Input
8239(gl_ObjectRayOriginEXT):     32(ptr) Variable Input
8342(gl_ObjectRayDirectionEXT):     32(ptr) Variable Input
84              44:             TypePointer Function 28(float)
85              46:             TypePointer Input 28(float)
8647(gl_RayTminEXT):     46(ptr) Variable Input
8750(gl_RayTmaxEXT):     46(ptr) Variable Input
88              52:             TypeMatrix 29(fvec3) 4
89              53:             TypePointer Function 52
90              55:             TypePointer Input 52
9156(gl_ObjectToWorldEXT):     55(ptr) Variable Input
9259(gl_WorldToObjectEXT):     55(ptr) Variable Input
93              61:             TypeVector 28(float) 4
94              62:             TypeMatrix 61(fvec4) 3
95              63:             TypePointer Function 62
9665(gl_ObjectToWorld3x4EXT):     55(ptr) Variable Input
9769(gl_WorldToObject3x4EXT):     55(ptr) Variable Input
98              72:             TypePointer HitAttributeKHR 61(fvec4)
99       73(iAttr):     72(ptr) Variable HitAttributeKHR
100              74:   28(float) Constant 1056964608
101              75:   28(float) Constant 0
102              76:   28(float) Constant 1065353216
103              77:   61(fvec4) ConstantComposite 74 74 75 76
104              78:      6(int) Constant 1
105              79:             TypeBool
106         4(main):           2 Function None 3
107               5:             Label
108           9(v0):      8(ptr) Variable Function
109          13(v1):      8(ptr) Variable Function
110          18(v2):     17(ptr) Variable Function
111          22(v3):     17(ptr) Variable Function
112          25(v4):     17(ptr) Variable Function
113          31(v5):     30(ptr) Variable Function
114          35(v6):     30(ptr) Variable Function
115          38(v7):     30(ptr) Variable Function
116          41(v8):     30(ptr) Variable Function
117          45(v9):     44(ptr) Variable Function
118         49(v10):     44(ptr) Variable Function
119         54(v11):     53(ptr) Variable Function
120         58(v12):     53(ptr) Variable Function
121         64(v13):     63(ptr) Variable Function
122         68(v14):     63(ptr) Variable Function
123              12:    7(ivec3) Load 11(gl_LaunchIDEXT)
124                              Store 9(v0) 12
125              15:    7(ivec3) Load 14(gl_LaunchSizeEXT)
126                              Store 13(v1) 15
127              21:     16(int) Load 20(gl_PrimitiveID)
128                              Store 18(v2) 21
129              24:     16(int) Load 23(gl_InstanceID)
130                              Store 22(v3) 24
131              27:     16(int) Load 26(gl_InstanceCustomIndexEXT)
132                              Store 25(v4) 27
133              34:   29(fvec3) Load 33(gl_WorldRayOriginEXT)
134                              Store 31(v5) 34
135              37:   29(fvec3) Load 36(gl_WorldRayDirectionEXT)
136                              Store 35(v6) 37
137              40:   29(fvec3) Load 39(gl_ObjectRayOriginEXT)
138                              Store 38(v7) 40
139              43:   29(fvec3) Load 42(gl_ObjectRayDirectionEXT)
140                              Store 41(v8) 43
141              48:   28(float) Load 47(gl_RayTminEXT)
142                              Store 45(v9) 48
143              51:   28(float) Load 50(gl_RayTmaxEXT)
144                              Store 49(v10) 51
145              57:          52 Load 56(gl_ObjectToWorldEXT)
146                              Store 54(v11) 57
147              60:          52 Load 59(gl_WorldToObjectEXT)
148                              Store 58(v12) 60
149              66:          52 Load 65(gl_ObjectToWorld3x4EXT)
150              67:          62 Transpose 66
151                              Store 64(v13) 67
152              70:          52 Load 69(gl_WorldToObject3x4EXT)
153              71:          62 Transpose 70
154                              Store 68(v14) 71
155                              Store 73(iAttr) 77
156              80:    79(bool) ReportIntersectionKHR 74 78
157                              Return
158                              FunctionEnd
159