• 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 RayTracingProvisionalKHR
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 56(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR
57                              Decorate 59(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR
58                              Decorate 65(gl_ObjectToWorld3x4EXT) BuiltIn ObjectToWorldKHR
59                              Decorate 69(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR
60               2:             TypeVoid
61               3:             TypeFunction 2
62               6:             TypeInt 32 0
63               7:             TypeVector 6(int) 3
64               8:             TypePointer Function 7(ivec3)
65              10:             TypePointer Input 7(ivec3)
6611(gl_LaunchIDEXT):     10(ptr) Variable Input
6714(gl_LaunchSizeEXT):     10(ptr) Variable Input
68              16:             TypeInt 32 1
69              17:             TypePointer Function 16(int)
70              19:             TypePointer Input 16(int)
7120(gl_PrimitiveID):     19(ptr) Variable Input
7223(gl_InstanceID):     19(ptr) Variable Input
7326(gl_InstanceCustomIndexEXT):     19(ptr) Variable Input
74              28:             TypeFloat 32
75              29:             TypeVector 28(float) 3
76              30:             TypePointer Function 29(fvec3)
77              32:             TypePointer Input 29(fvec3)
7833(gl_WorldRayOriginEXT):     32(ptr) Variable Input
7936(gl_WorldRayDirectionEXT):     32(ptr) Variable Input
8039(gl_ObjectRayOriginEXT):     32(ptr) Variable Input
8142(gl_ObjectRayDirectionEXT):     32(ptr) Variable Input
82              44:             TypePointer Function 28(float)
83              46:             TypePointer Input 28(float)
8447(gl_RayTminEXT):     46(ptr) Variable Input
8550(gl_RayTmaxEXT):     46(ptr) Variable Input
86              52:             TypeMatrix 29(fvec3) 4
87              53:             TypePointer Function 52
88              55:             TypePointer Input 52
8956(gl_ObjectToWorldEXT):     55(ptr) Variable Input
9059(gl_WorldToObjectEXT):     55(ptr) Variable Input
91              61:             TypeVector 28(float) 4
92              62:             TypeMatrix 61(fvec4) 3
93              63:             TypePointer Function 62
9465(gl_ObjectToWorld3x4EXT):     55(ptr) Variable Input
9569(gl_WorldToObject3x4EXT):     55(ptr) Variable Input
96              72:             TypePointer HitAttributeKHR 61(fvec4)
97       73(iAttr):     72(ptr) Variable HitAttributeKHR
98              74:   28(float) Constant 1056964608
99              75:   28(float) Constant 0
100              76:   28(float) Constant 1065353216
101              77:   61(fvec4) ConstantComposite 74 74 75 76
102              78:      6(int) Constant 1
103              79:             TypeBool
104         4(main):           2 Function None 3
105               5:             Label
106           9(v0):      8(ptr) Variable Function
107          13(v1):      8(ptr) Variable Function
108          18(v2):     17(ptr) Variable Function
109          22(v3):     17(ptr) Variable Function
110          25(v4):     17(ptr) Variable Function
111          31(v5):     30(ptr) Variable Function
112          35(v6):     30(ptr) Variable Function
113          38(v7):     30(ptr) Variable Function
114          41(v8):     30(ptr) Variable Function
115          45(v9):     44(ptr) Variable Function
116         49(v10):     44(ptr) Variable Function
117         54(v11):     53(ptr) Variable Function
118         58(v12):     53(ptr) Variable Function
119         64(v13):     63(ptr) Variable Function
120         68(v14):     63(ptr) Variable Function
121              12:    7(ivec3) Load 11(gl_LaunchIDEXT)
122                              Store 9(v0) 12
123              15:    7(ivec3) Load 14(gl_LaunchSizeEXT)
124                              Store 13(v1) 15
125              21:     16(int) Load 20(gl_PrimitiveID)
126                              Store 18(v2) 21
127              24:     16(int) Load 23(gl_InstanceID)
128                              Store 22(v3) 24
129              27:     16(int) Load 26(gl_InstanceCustomIndexEXT)
130                              Store 25(v4) 27
131              34:   29(fvec3) Load 33(gl_WorldRayOriginEXT)
132                              Store 31(v5) 34
133              37:   29(fvec3) Load 36(gl_WorldRayDirectionEXT)
134                              Store 35(v6) 37
135              40:   29(fvec3) Load 39(gl_ObjectRayOriginEXT)
136                              Store 38(v7) 40
137              43:   29(fvec3) Load 42(gl_ObjectRayDirectionEXT)
138                              Store 41(v8) 43
139              48:   28(float) Load 47(gl_RayTminEXT)
140                              Store 45(v9) 48
141              51:   28(float) Load 50(gl_RayTmaxEXT)
142                              Store 49(v10) 51
143              57:          52 Load 56(gl_ObjectToWorldEXT)
144                              Store 54(v11) 57
145              60:          52 Load 59(gl_WorldToObjectEXT)
146                              Store 58(v12) 60
147              66:          52 Load 65(gl_ObjectToWorld3x4EXT)
148              67:          62 Transpose 66
149                              Store 64(v13) 67
150              70:          52 Load 69(gl_WorldToObject3x4EXT)
151              71:          62 Transpose 70
152                              Store 68(v14) 71
153                              Store 73(iAttr) 77
154              80:    79(bool) ReportIntersectionKHR 74 78
155                              Return
156                              FunctionEnd
157