• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.AnyHitShader.rahit
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 81
5
6                              Capability RayTracingNV
7                              Extension  "SPV_NV_ray_tracing"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint AnyHitKHR 4  "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67
11                              Source GLSL 460
12                              SourceExtension  "GL_NV_ray_tracing"
13                              Name 4  "main"
14                              Name 9  "v0"
15                              Name 11  "gl_LaunchIDNV"
16                              Name 13  "v1"
17                              Name 14  "gl_LaunchSizeNV"
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_InstanceCustomIndexNV"
24                              Name 31  "v5"
25                              Name 33  "gl_WorldRayOriginNV"
26                              Name 35  "v6"
27                              Name 36  "gl_WorldRayDirectionNV"
28                              Name 38  "v7"
29                              Name 39  "gl_ObjectRayOriginNV"
30                              Name 41  "v8"
31                              Name 42  "gl_ObjectRayDirectionNV"
32                              Name 45  "v9"
33                              Name 47  "gl_RayTminNV"
34                              Name 49  "v10"
35                              Name 50  "gl_RayTmaxNV"
36                              Name 52  "v11"
37                              Name 53  "gl_HitTNV"
38                              Name 56  "v12"
39                              Name 58  "gl_HitKindNV"
40                              Name 62  "v13"
41                              Name 64  "gl_ObjectToWorldNV"
42                              Name 66  "v14"
43                              Name 67  "gl_WorldToObjectNV"
44                              Name 71  "incomingPayload"
45                              Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR
46                              Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
47                              Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
48                              Decorate 23(gl_InstanceID) BuiltIn InstanceId
49                              Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexKHR
50                              Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginKHR
51                              Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionKHR
52                              Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginKHR
53                              Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionKHR
54                              Decorate 47(gl_RayTminNV) BuiltIn RayTminKHR
55                              Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxKHR
56                              Decorate 53(gl_HitTNV) BuiltIn HitTNV
57                              Decorate 58(gl_HitKindNV) BuiltIn HitKindKHR
58                              Decorate 64(gl_ObjectToWorldNV) BuiltIn ObjectToWorldKHR
59                              Decorate 67(gl_WorldToObjectNV) BuiltIn WorldToObjectKHR
60                              Decorate 71(incomingPayload) Location 1
61               2:             TypeVoid
62               3:             TypeFunction 2
63               6:             TypeInt 32 0
64               7:             TypeVector 6(int) 3
65               8:             TypePointer Function 7(ivec3)
66              10:             TypePointer Input 7(ivec3)
6711(gl_LaunchIDNV):     10(ptr) Variable Input
6814(gl_LaunchSizeNV):     10(ptr) Variable Input
69              16:             TypeInt 32 1
70              17:             TypePointer Function 16(int)
71              19:             TypePointer Input 16(int)
7220(gl_PrimitiveID):     19(ptr) Variable Input
7323(gl_InstanceID):     19(ptr) Variable Input
7426(gl_InstanceCustomIndexNV):     19(ptr) Variable Input
75              28:             TypeFloat 32
76              29:             TypeVector 28(float) 3
77              30:             TypePointer Function 29(fvec3)
78              32:             TypePointer Input 29(fvec3)
7933(gl_WorldRayOriginNV):     32(ptr) Variable Input
8036(gl_WorldRayDirectionNV):     32(ptr) Variable Input
8139(gl_ObjectRayOriginNV):     32(ptr) Variable Input
8242(gl_ObjectRayDirectionNV):     32(ptr) Variable Input
83              44:             TypePointer Function 28(float)
84              46:             TypePointer Input 28(float)
8547(gl_RayTminNV):     46(ptr) Variable Input
8650(gl_RayTmaxNV):     46(ptr) Variable Input
87   53(gl_HitTNV):     46(ptr) Variable Input
88              55:             TypePointer Function 6(int)
89              57:             TypePointer Input 6(int)
9058(gl_HitKindNV):     57(ptr) Variable Input
91              60:             TypeMatrix 29(fvec3) 4
92              61:             TypePointer Function 60
93              63:             TypePointer Input 60
9464(gl_ObjectToWorldNV):     63(ptr) Variable Input
9567(gl_WorldToObjectNV):     63(ptr) Variable Input
96              69:             TypeVector 28(float) 4
97              70:             TypePointer IncomingRayPayloadKHR 69(fvec4)
9871(incomingPayload):     70(ptr) Variable IncomingRayPayloadKHR
99              72:   28(float) Constant 1056964608
100              73:   69(fvec4) ConstantComposite 72 72 72 72
101              75:     16(int) Constant 1
102              76:             TypeBool
103         4(main):           2 Function None 3
104               5:             Label
105           9(v0):      8(ptr) Variable Function
106          13(v1):      8(ptr) Variable Function
107          18(v2):     17(ptr) Variable Function
108          22(v3):     17(ptr) Variable Function
109          25(v4):     17(ptr) Variable Function
110          31(v5):     30(ptr) Variable Function
111          35(v6):     30(ptr) Variable Function
112          38(v7):     30(ptr) Variable Function
113          41(v8):     30(ptr) Variable Function
114          45(v9):     44(ptr) Variable Function
115         49(v10):     44(ptr) Variable Function
116         52(v11):     44(ptr) Variable Function
117         56(v12):     55(ptr) Variable Function
118         62(v13):     61(ptr) Variable Function
119         66(v14):     61(ptr) Variable Function
120              12:    7(ivec3) Load 11(gl_LaunchIDNV)
121                              Store 9(v0) 12
122              15:    7(ivec3) Load 14(gl_LaunchSizeNV)
123                              Store 13(v1) 15
124              21:     16(int) Load 20(gl_PrimitiveID)
125                              Store 18(v2) 21
126              24:     16(int) Load 23(gl_InstanceID)
127                              Store 22(v3) 24
128              27:     16(int) Load 26(gl_InstanceCustomIndexNV)
129                              Store 25(v4) 27
130              34:   29(fvec3) Load 33(gl_WorldRayOriginNV)
131                              Store 31(v5) 34
132              37:   29(fvec3) Load 36(gl_WorldRayDirectionNV)
133                              Store 35(v6) 37
134              40:   29(fvec3) Load 39(gl_ObjectRayOriginNV)
135                              Store 38(v7) 40
136              43:   29(fvec3) Load 42(gl_ObjectRayDirectionNV)
137                              Store 41(v8) 43
138              48:   28(float) Load 47(gl_RayTminNV)
139                              Store 45(v9) 48
140              51:   28(float) Load 50(gl_RayTmaxNV)
141                              Store 49(v10) 51
142              54:   28(float) Load 53(gl_HitTNV)
143                              Store 52(v11) 54
144              59:      6(int) Load 58(gl_HitKindNV)
145                              Store 56(v12) 59
146              65:          60 Load 64(gl_ObjectToWorldNV)
147                              Store 62(v13) 65
148              68:          60 Load 67(gl_WorldToObjectNV)
149                              Store 66(v14) 68
150                              Store 71(incomingPayload) 73
151              74:     16(int) Load 18(v2)
152              77:    76(bool) IEqual 74 75
153                              SelectionMerge 79 None
154                              BranchConditional 77 78 80
155              78:               Label
156                                IgnoreIntersectionNV
157                                Branch 79
158              80:               Label
159                                TerminateRayNV
160                                Branch 79
161              79:             Label
162                              Return
163                              FunctionEnd
164