1spv.ext.ClosestHitShader.rchit 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 102 5 6 Capability RayTracingKHR 7 Capability RayCullMaskKHR 8 Extension "SPV_KHR_ray_cull_mask" 9 Extension "SPV_KHR_ray_tracing" 10 1: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint ClosestHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67 70 82 86 99 101 13 Source GLSL 460 14 SourceExtension "GL_EXT_ray_cull_mask" 15 SourceExtension "GL_EXT_ray_tracing" 16 Name 4 "main" 17 Name 9 "v0" 18 Name 11 "gl_LaunchIDEXT" 19 Name 13 "v1" 20 Name 14 "gl_LaunchSizeEXT" 21 Name 18 "v2" 22 Name 20 "gl_PrimitiveID" 23 Name 22 "v3" 24 Name 23 "gl_InstanceID" 25 Name 25 "v4" 26 Name 26 "gl_InstanceCustomIndexEXT" 27 Name 31 "v5" 28 Name 33 "gl_WorldRayOriginEXT" 29 Name 35 "v6" 30 Name 36 "gl_WorldRayDirectionEXT" 31 Name 38 "v7" 32 Name 39 "gl_ObjectRayOriginEXT" 33 Name 41 "v8" 34 Name 42 "gl_ObjectRayDirectionEXT" 35 Name 45 "v9" 36 Name 47 "gl_RayTminEXT" 37 Name 49 "v10" 38 Name 50 "gl_RayTmaxEXT" 39 Name 52 "v11" 40 Name 53 "gl_HitTEXT" 41 Name 56 "v12" 42 Name 58 "gl_HitKindEXT" 43 Name 62 "v13" 44 Name 64 "gl_ObjectToWorldEXT" 45 Name 66 "v14" 46 Name 67 "gl_WorldToObjectEXT" 47 Name 69 "v15" 48 Name 70 "gl_GeometryIndexEXT" 49 Name 75 "v16" 50 Name 78 "v17" 51 Name 81 "v18" 52 Name 82 "gl_CullMaskEXT" 53 Name 86 "accEXT" 54 Name 99 "incomingPayload" 55 Name 101 "localPayload" 56 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 57 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 58 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 59 Decorate 23(gl_InstanceID) BuiltIn InstanceId 60 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 61 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 62 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 63 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 64 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 65 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 66 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 67 Decorate 53(gl_HitTEXT) BuiltIn RayTmaxKHR 68 Decorate 58(gl_HitKindEXT) BuiltIn HitKindKHR 69 Decorate 64(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 70 Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 71 Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 72 Decorate 82(gl_CullMaskEXT) BuiltIn CullMaskKHR 73 Decorate 86(accEXT) DescriptorSet 0 74 Decorate 86(accEXT) Binding 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 11482(gl_CullMaskEXT): 57(ptr) Variable Input 115 84: TypeAccelerationStructureKHR 116 85: TypePointer UniformConstant 84 117 86(accEXT): 85(ptr) Variable UniformConstant 118 88: 6(int) Constant 0 119 89: 6(int) Constant 1 120 90: 6(int) Constant 2 121 91: 6(int) Constant 3 122 92: 28(float) Constant 1056964608 123 93: 29(fvec3) ConstantComposite 92 92 92 124 94: 28(float) Constant 1065353216 125 95: 29(fvec3) ConstantComposite 94 94 94 126 96: 28(float) Constant 1061158912 127 97: 16(int) Constant 1 128 98: TypePointer IncomingRayPayloadKHR 72(fvec4) 12999(incomingPayload): 98(ptr) Variable IncomingRayPayloadKHR 130 100: TypePointer RayPayloadKHR 72(fvec4) 131101(localPayload): 100(ptr) Variable RayPayloadKHR 132 4(main): 2 Function None 3 133 5: Label 134 9(v0): 8(ptr) Variable Function 135 13(v1): 8(ptr) Variable Function 136 18(v2): 17(ptr) Variable Function 137 22(v3): 17(ptr) Variable Function 138 25(v4): 17(ptr) Variable Function 139 31(v5): 30(ptr) Variable Function 140 35(v6): 30(ptr) Variable Function 141 38(v7): 30(ptr) Variable Function 142 41(v8): 30(ptr) Variable Function 143 45(v9): 44(ptr) Variable Function 144 49(v10): 44(ptr) Variable Function 145 52(v11): 44(ptr) Variable Function 146 56(v12): 55(ptr) Variable Function 147 62(v13): 61(ptr) Variable Function 148 66(v14): 61(ptr) Variable Function 149 69(v15): 17(ptr) Variable Function 150 75(v16): 74(ptr) Variable Function 151 78(v17): 74(ptr) Variable Function 152 81(v18): 55(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 76: 60 Load 64(gl_ObjectToWorldEXT) 186 77: 73 Transpose 76 187 Store 75(v16) 77 188 79: 60 Load 67(gl_WorldToObjectEXT) 189 80: 73 Transpose 79 190 Store 78(v17) 80 191 83: 6(int) Load 82(gl_CullMaskEXT) 192 Store 81(v18) 83 193 87: 84 Load 86(accEXT) 194 TraceRayKHR 87 88 89 90 91 88 93 92 95 96 99(incomingPayload) 195 Return 196 FunctionEnd 197