• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.ClosestHitShader.rchit
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 88
5
6                              Capability RayTracingNV
7                              Extension  "SPV_NV_ray_tracing"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint ClosestHitKHR 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  "accNV"
45                              Name 85  "localPayload"
46                              Name 87  "incomingPayload"
47                              Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR
48                              Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
49                              Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId
50                              Decorate 23(gl_InstanceID) BuiltIn InstanceId
51                              Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexKHR
52                              Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginKHR
53                              Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionKHR
54                              Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginKHR
55                              Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionKHR
56                              Decorate 47(gl_RayTminNV) BuiltIn RayTminKHR
57                              Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxKHR
58                              Decorate 53(gl_HitTNV) BuiltIn HitTNV
59                              Decorate 58(gl_HitKindNV) BuiltIn HitKindKHR
60                              Decorate 64(gl_ObjectToWorldNV) BuiltIn ObjectToWorldKHR
61                              Decorate 67(gl_WorldToObjectNV) BuiltIn WorldToObjectKHR
62                              Decorate 71(accNV) DescriptorSet 0
63                              Decorate 71(accNV) Binding 0
64                              Decorate 85(localPayload) Location 0
65                              Decorate 87(incomingPayload) Location 1
66               2:             TypeVoid
67               3:             TypeFunction 2
68               6:             TypeInt 32 0
69               7:             TypeVector 6(int) 3
70               8:             TypePointer Function 7(ivec3)
71              10:             TypePointer Input 7(ivec3)
7211(gl_LaunchIDNV):     10(ptr) Variable Input
7314(gl_LaunchSizeNV):     10(ptr) Variable Input
74              16:             TypeInt 32 1
75              17:             TypePointer Function 16(int)
76              19:             TypePointer Input 16(int)
7720(gl_PrimitiveID):     19(ptr) Variable Input
7823(gl_InstanceID):     19(ptr) Variable Input
7926(gl_InstanceCustomIndexNV):     19(ptr) Variable Input
80              28:             TypeFloat 32
81              29:             TypeVector 28(float) 3
82              30:             TypePointer Function 29(fvec3)
83              32:             TypePointer Input 29(fvec3)
8433(gl_WorldRayOriginNV):     32(ptr) Variable Input
8536(gl_WorldRayDirectionNV):     32(ptr) Variable Input
8639(gl_ObjectRayOriginNV):     32(ptr) Variable Input
8742(gl_ObjectRayDirectionNV):     32(ptr) Variable Input
88              44:             TypePointer Function 28(float)
89              46:             TypePointer Input 28(float)
9047(gl_RayTminNV):     46(ptr) Variable Input
9150(gl_RayTmaxNV):     46(ptr) Variable Input
92   53(gl_HitTNV):     46(ptr) Variable Input
93              55:             TypePointer Function 6(int)
94              57:             TypePointer Input 6(int)
9558(gl_HitKindNV):     57(ptr) Variable Input
96              60:             TypeMatrix 29(fvec3) 4
97              61:             TypePointer Function 60
98              63:             TypePointer Input 60
9964(gl_ObjectToWorldNV):     63(ptr) Variable Input
10067(gl_WorldToObjectNV):     63(ptr) Variable Input
101              69:             TypeAccelerationStructureKHR
102              70:             TypePointer UniformConstant 69
103       71(accNV):     70(ptr) Variable UniformConstant
104              73:      6(int) Constant 0
105              74:      6(int) Constant 1
106              75:      6(int) Constant 2
107              76:      6(int) Constant 3
108              77:   28(float) Constant 1056964608
109              78:   29(fvec3) ConstantComposite 77 77 77
110              79:   28(float) Constant 1065353216
111              80:   29(fvec3) ConstantComposite 79 79 79
112              81:   28(float) Constant 1061158912
113              82:     16(int) Constant 1
114              83:             TypeVector 28(float) 4
115              84:             TypePointer RayPayloadKHR 83(fvec4)
11685(localPayload):     84(ptr) Variable RayPayloadKHR
117              86:             TypePointer IncomingRayPayloadKHR 83(fvec4)
11887(incomingPayload):     86(ptr) Variable IncomingRayPayloadKHR
119         4(main):           2 Function None 3
120               5:             Label
121           9(v0):      8(ptr) Variable Function
122          13(v1):      8(ptr) Variable Function
123          18(v2):     17(ptr) Variable Function
124          22(v3):     17(ptr) Variable Function
125          25(v4):     17(ptr) Variable Function
126          31(v5):     30(ptr) Variable Function
127          35(v6):     30(ptr) Variable Function
128          38(v7):     30(ptr) Variable Function
129          41(v8):     30(ptr) Variable Function
130          45(v9):     44(ptr) Variable Function
131         49(v10):     44(ptr) Variable Function
132         52(v11):     44(ptr) Variable Function
133         56(v12):     55(ptr) Variable Function
134         62(v13):     61(ptr) Variable Function
135         66(v14):     61(ptr) Variable Function
136              12:    7(ivec3) Load 11(gl_LaunchIDNV)
137                              Store 9(v0) 12
138              15:    7(ivec3) Load 14(gl_LaunchSizeNV)
139                              Store 13(v1) 15
140              21:     16(int) Load 20(gl_PrimitiveID)
141                              Store 18(v2) 21
142              24:     16(int) Load 23(gl_InstanceID)
143                              Store 22(v3) 24
144              27:     16(int) Load 26(gl_InstanceCustomIndexNV)
145                              Store 25(v4) 27
146              34:   29(fvec3) Load 33(gl_WorldRayOriginNV)
147                              Store 31(v5) 34
148              37:   29(fvec3) Load 36(gl_WorldRayDirectionNV)
149                              Store 35(v6) 37
150              40:   29(fvec3) Load 39(gl_ObjectRayOriginNV)
151                              Store 38(v7) 40
152              43:   29(fvec3) Load 42(gl_ObjectRayDirectionNV)
153                              Store 41(v8) 43
154              48:   28(float) Load 47(gl_RayTminNV)
155                              Store 45(v9) 48
156              51:   28(float) Load 50(gl_RayTmaxNV)
157                              Store 49(v10) 51
158              54:   28(float) Load 53(gl_HitTNV)
159                              Store 52(v11) 54
160              59:      6(int) Load 58(gl_HitKindNV)
161                              Store 56(v12) 59
162              65:          60 Load 64(gl_ObjectToWorldNV)
163                              Store 62(v13) 65
164              68:          60 Load 67(gl_WorldToObjectNV)
165                              Store 66(v14) 68
166              72:          69 Load 71(accNV)
167                              TraceNV 72 73 74 75 76 73 78 77 80 81 82
168                              Return
169                              FunctionEnd
170