1spv.ext.AnyHitShader.rahit 2// Module Version 10400 3// Generated by (magic number): 8000a 4// Id's are bound by 94 5 6 Capability RayTracingProvisionalKHR 7 Extension "SPV_KHR_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 70 76 80 84 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 84 "incomingPayload" 51 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 52 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 53 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 54 Decorate 23(gl_InstanceID) BuiltIn InstanceId 55 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 56 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 57 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 58 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 59 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 60 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 61 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 62 Decorate 53(gl_HitTEXT) BuiltIn HitTKHR 63 Decorate 58(gl_HitKindEXT) BuiltIn HitKindKHR 64 Decorate 64(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 65 Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 66 Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 67 Decorate 76(gl_ObjectToWorld3x4EXT) BuiltIn ObjectToWorldKHR 68 Decorate 80(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR 69 Decorate 84(incomingPayload) Location 1 70 2: TypeVoid 71 3: TypeFunction 2 72 6: TypeInt 32 0 73 7: TypeVector 6(int) 3 74 8: TypePointer Function 7(ivec3) 75 10: TypePointer Input 7(ivec3) 7611(gl_LaunchIDEXT): 10(ptr) Variable Input 7714(gl_LaunchSizeEXT): 10(ptr) Variable Input 78 16: TypeInt 32 1 79 17: TypePointer Function 16(int) 80 19: TypePointer Input 16(int) 8120(gl_PrimitiveID): 19(ptr) Variable Input 8223(gl_InstanceID): 19(ptr) Variable Input 8326(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input 84 28: TypeFloat 32 85 29: TypeVector 28(float) 3 86 30: TypePointer Function 29(fvec3) 87 32: TypePointer Input 29(fvec3) 8833(gl_WorldRayOriginEXT): 32(ptr) Variable Input 8936(gl_WorldRayDirectionEXT): 32(ptr) Variable Input 9039(gl_ObjectRayOriginEXT): 32(ptr) Variable Input 9142(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input 92 44: TypePointer Function 28(float) 93 46: TypePointer Input 28(float) 9447(gl_RayTminEXT): 46(ptr) Variable Input 9550(gl_RayTmaxEXT): 46(ptr) Variable Input 96 53(gl_HitTEXT): 46(ptr) Variable Input 97 55: TypePointer Function 6(int) 98 57: TypePointer Input 6(int) 9958(gl_HitKindEXT): 57(ptr) Variable Input 100 60: TypeMatrix 29(fvec3) 4 101 61: TypePointer Function 60 102 63: TypePointer Input 60 10364(gl_ObjectToWorldEXT): 63(ptr) Variable Input 10467(gl_WorldToObjectEXT): 63(ptr) Variable Input 10570(gl_GeometryIndexEXT): 19(ptr) Variable Input 106 72: TypeVector 28(float) 4 107 73: TypeMatrix 72(fvec4) 3 108 74: TypePointer Function 73 10976(gl_ObjectToWorld3x4EXT): 63(ptr) Variable Input 11080(gl_WorldToObject3x4EXT): 63(ptr) Variable Input 111 83: TypePointer IncomingRayPayloadKHR 72(fvec4) 11284(incomingPayload): 83(ptr) Variable IncomingRayPayloadKHR 113 85: 28(float) Constant 1056964608 114 86: 72(fvec4) ConstantComposite 85 85 85 85 115 88: 16(int) Constant 1 116 89: TypeBool 117 4(main): 2 Function None 3 118 5: Label 119 9(v0): 8(ptr) Variable Function 120 13(v1): 8(ptr) Variable Function 121 18(v2): 17(ptr) Variable Function 122 22(v3): 17(ptr) Variable Function 123 25(v4): 17(ptr) Variable Function 124 31(v5): 30(ptr) Variable Function 125 35(v6): 30(ptr) Variable Function 126 38(v7): 30(ptr) Variable Function 127 41(v8): 30(ptr) Variable Function 128 45(v9): 44(ptr) Variable Function 129 49(v10): 44(ptr) Variable Function 130 52(v11): 44(ptr) Variable Function 131 56(v12): 55(ptr) Variable Function 132 62(v13): 61(ptr) Variable Function 133 66(v14): 61(ptr) Variable Function 134 69(v15): 17(ptr) Variable Function 135 75(v16): 74(ptr) Variable Function 136 79(v17): 74(ptr) Variable Function 137 12: 7(ivec3) Load 11(gl_LaunchIDEXT) 138 Store 9(v0) 12 139 15: 7(ivec3) Load 14(gl_LaunchSizeEXT) 140 Store 13(v1) 15 141 21: 16(int) Load 20(gl_PrimitiveID) 142 Store 18(v2) 21 143 24: 16(int) Load 23(gl_InstanceID) 144 Store 22(v3) 24 145 27: 16(int) Load 26(gl_InstanceCustomIndexEXT) 146 Store 25(v4) 27 147 34: 29(fvec3) Load 33(gl_WorldRayOriginEXT) 148 Store 31(v5) 34 149 37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT) 150 Store 35(v6) 37 151 40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT) 152 Store 38(v7) 40 153 43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT) 154 Store 41(v8) 43 155 48: 28(float) Load 47(gl_RayTminEXT) 156 Store 45(v9) 48 157 51: 28(float) Load 50(gl_RayTmaxEXT) 158 Store 49(v10) 51 159 54: 28(float) Load 53(gl_HitTEXT) 160 Store 52(v11) 54 161 59: 6(int) Load 58(gl_HitKindEXT) 162 Store 56(v12) 59 163 65: 60 Load 64(gl_ObjectToWorldEXT) 164 Store 62(v13) 65 165 68: 60 Load 67(gl_WorldToObjectEXT) 166 Store 66(v14) 68 167 71: 16(int) Load 70(gl_GeometryIndexEXT) 168 Store 69(v15) 71 169 77: 60 Load 76(gl_ObjectToWorld3x4EXT) 170 78: 73 Transpose 77 171 Store 75(v16) 78 172 81: 60 Load 80(gl_WorldToObject3x4EXT) 173 82: 73 Transpose 81 174 Store 79(v17) 82 175 Store 84(incomingPayload) 86 176 87: 16(int) Load 18(v2) 177 90: 89(bool) IEqual 87 88 178 SelectionMerge 92 None 179 BranchConditional 90 91 93 180 91: Label 181 IgnoreIntersectionKHR 182 Branch 92 183 93: Label 184 TerminateRayKHR 185 Branch 92 186 92: Label 187 Return 188 FunctionEnd 189