1spv.ext.ClosestHitShader.rchit 2// Module Version 10400 3// Generated by (magic number): 8000a 4// Id's are bound by 101 5 6 Capability RayTracingKHR 7 Extension "SPV_KHR_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 70 76 80 85 98 100 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 52 "v11" 37 Name 53 "gl_HitTEXT" 38 Name 56 "v12" 39 Name 58 "gl_HitKindEXT" 40 Name 62 "v13" 41 Name 64 "gl_ObjectToWorldEXT" 42 Name 66 "v14" 43 Name 67 "gl_WorldToObjectEXT" 44 Name 69 "v15" 45 Name 70 "gl_GeometryIndexEXT" 46 Name 75 "v16" 47 Name 76 "gl_ObjectToWorld3x4EXT" 48 Name 79 "v17" 49 Name 80 "gl_WorldToObject3x4EXT" 50 Name 85 "accEXT" 51 Name 98 "incomingPayload" 52 Name 100 "localPayload" 53 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 54 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 55 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 56 Decorate 23(gl_InstanceID) BuiltIn InstanceId 57 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 58 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 59 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 60 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 61 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 62 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 63 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 64 Decorate 53(gl_HitTEXT) BuiltIn RayTmaxKHR 65 Decorate 58(gl_HitKindEXT) BuiltIn HitKindKHR 66 Decorate 64(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 67 Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 68 Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 69 Decorate 76(gl_ObjectToWorld3x4EXT) BuiltIn ObjectToWorldKHR 70 Decorate 80(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR 71 Decorate 85(accEXT) DescriptorSet 0 72 Decorate 85(accEXT) Binding 0 73 Decorate 98(incomingPayload) Location 1 74 Decorate 100(localPayload) Location 0 75 2: TypeVoid 76 3: TypeFunction 2 77 6: TypeInt 32 0 78 7: TypeVector 6(int) 3 79 8: TypePointer Function 7(ivec3) 80 10: TypePointer Input 7(ivec3) 8111(gl_LaunchIDEXT): 10(ptr) Variable Input 8214(gl_LaunchSizeEXT): 10(ptr) Variable Input 83 16: TypeInt 32 1 84 17: TypePointer Function 16(int) 85 19: TypePointer Input 16(int) 8620(gl_PrimitiveID): 19(ptr) Variable Input 8723(gl_InstanceID): 19(ptr) Variable Input 8826(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input 89 28: TypeFloat 32 90 29: TypeVector 28(float) 3 91 30: TypePointer Function 29(fvec3) 92 32: TypePointer Input 29(fvec3) 9333(gl_WorldRayOriginEXT): 32(ptr) Variable Input 9436(gl_WorldRayDirectionEXT): 32(ptr) Variable Input 9539(gl_ObjectRayOriginEXT): 32(ptr) Variable Input 9642(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input 97 44: TypePointer Function 28(float) 98 46: TypePointer Input 28(float) 9947(gl_RayTminEXT): 46(ptr) Variable Input 10050(gl_RayTmaxEXT): 46(ptr) Variable Input 101 53(gl_HitTEXT): 46(ptr) Variable Input 102 55: TypePointer Function 6(int) 103 57: TypePointer Input 6(int) 10458(gl_HitKindEXT): 57(ptr) Variable Input 105 60: TypeMatrix 29(fvec3) 4 106 61: TypePointer Function 60 107 63: TypePointer Input 60 10864(gl_ObjectToWorldEXT): 63(ptr) Variable Input 10967(gl_WorldToObjectEXT): 63(ptr) Variable Input 11070(gl_GeometryIndexEXT): 19(ptr) Variable Input 111 72: TypeVector 28(float) 4 112 73: TypeMatrix 72(fvec4) 3 113 74: TypePointer Function 73 11476(gl_ObjectToWorld3x4EXT): 63(ptr) Variable Input 11580(gl_WorldToObject3x4EXT): 63(ptr) Variable Input 116 83: TypeAccelerationStructureKHR 117 84: TypePointer UniformConstant 83 118 85(accEXT): 84(ptr) Variable UniformConstant 119 87: 6(int) Constant 0 120 88: 6(int) Constant 1 121 89: 6(int) Constant 2 122 90: 6(int) Constant 3 123 91: 28(float) Constant 1056964608 124 92: 29(fvec3) ConstantComposite 91 91 91 125 93: 28(float) Constant 1065353216 126 94: 29(fvec3) ConstantComposite 93 93 93 127 95: 28(float) Constant 1061158912 128 96: 16(int) Constant 1 129 97: TypePointer IncomingRayPayloadKHR 72(fvec4) 13098(incomingPayload): 97(ptr) Variable IncomingRayPayloadKHR 131 99: TypePointer RayPayloadKHR 72(fvec4) 132100(localPayload): 99(ptr) Variable RayPayloadKHR 133 4(main): 2 Function None 3 134 5: Label 135 9(v0): 8(ptr) Variable Function 136 13(v1): 8(ptr) Variable Function 137 18(v2): 17(ptr) Variable Function 138 22(v3): 17(ptr) Variable Function 139 25(v4): 17(ptr) Variable Function 140 31(v5): 30(ptr) Variable Function 141 35(v6): 30(ptr) Variable Function 142 38(v7): 30(ptr) Variable Function 143 41(v8): 30(ptr) Variable Function 144 45(v9): 44(ptr) Variable Function 145 49(v10): 44(ptr) Variable Function 146 52(v11): 44(ptr) Variable Function 147 56(v12): 55(ptr) Variable Function 148 62(v13): 61(ptr) Variable Function 149 66(v14): 61(ptr) Variable Function 150 69(v15): 17(ptr) Variable Function 151 75(v16): 74(ptr) Variable Function 152 79(v17): 74(ptr) Variable Function 153 12: 7(ivec3) Load 11(gl_LaunchIDEXT) 154 Store 9(v0) 12 155 15: 7(ivec3) Load 14(gl_LaunchSizeEXT) 156 Store 13(v1) 15 157 21: 16(int) Load 20(gl_PrimitiveID) 158 Store 18(v2) 21 159 24: 16(int) Load 23(gl_InstanceID) 160 Store 22(v3) 24 161 27: 16(int) Load 26(gl_InstanceCustomIndexEXT) 162 Store 25(v4) 27 163 34: 29(fvec3) Load 33(gl_WorldRayOriginEXT) 164 Store 31(v5) 34 165 37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT) 166 Store 35(v6) 37 167 40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT) 168 Store 38(v7) 40 169 43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT) 170 Store 41(v8) 43 171 48: 28(float) Load 47(gl_RayTminEXT) 172 Store 45(v9) 48 173 51: 28(float) Load 50(gl_RayTmaxEXT) 174 Store 49(v10) 51 175 54: 28(float) Load 53(gl_HitTEXT) 176 Store 52(v11) 54 177 59: 6(int) Load 58(gl_HitKindEXT) 178 Store 56(v12) 59 179 65: 60 Load 64(gl_ObjectToWorldEXT) 180 Store 62(v13) 65 181 68: 60 Load 67(gl_WorldToObjectEXT) 182 Store 66(v14) 68 183 71: 16(int) Load 70(gl_GeometryIndexEXT) 184 Store 69(v15) 71 185 77: 60 Load 76(gl_ObjectToWorld3x4EXT) 186 78: 73 Transpose 77 187 Store 75(v16) 78 188 81: 60 Load 80(gl_WorldToObject3x4EXT) 189 82: 73 Transpose 81 190 Store 79(v17) 82 191 86: 83 Load 85(accEXT) 192 TraceRayKHR 86 87 88 89 90 87 92 91 94 95 98(incomingPayload) 193 Return 194 FunctionEnd 195