1spv.ext.AnyHitShader.rahit 2// Module Version 10400 3// Generated by (magic number): 8000a 4// Id's are bound by 107 5 6 Capability GroupNonUniform 7 Capability RayTracingKHR 8 Extension "SPV_KHR_ray_tracing" 9 1: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint AnyHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67 70 76 80 84 98 12 Source GLSL 460 13 SourceExtension "GL_EXT_ray_tracing" 14 SourceExtension "GL_KHR_shader_subgroup_basic" 15 Name 4 "main" 16 Name 9 "v0" 17 Name 11 "gl_LaunchIDEXT" 18 Name 13 "v1" 19 Name 14 "gl_LaunchSizeEXT" 20 Name 18 "v2" 21 Name 20 "gl_PrimitiveID" 22 Name 22 "v3" 23 Name 23 "gl_InstanceID" 24 Name 25 "v4" 25 Name 26 "gl_InstanceCustomIndexEXT" 26 Name 31 "v5" 27 Name 33 "gl_WorldRayOriginEXT" 28 Name 35 "v6" 29 Name 36 "gl_WorldRayDirectionEXT" 30 Name 38 "v7" 31 Name 39 "gl_ObjectRayOriginEXT" 32 Name 41 "v8" 33 Name 42 "gl_ObjectRayDirectionEXT" 34 Name 45 "v9" 35 Name 47 "gl_RayTminEXT" 36 Name 49 "v10" 37 Name 50 "gl_RayTmaxEXT" 38 Name 52 "v11" 39 Name 53 "gl_HitTEXT" 40 Name 56 "v12" 41 Name 58 "gl_HitKindEXT" 42 Name 62 "v13" 43 Name 64 "gl_ObjectToWorldEXT" 44 Name 66 "v14" 45 Name 67 "gl_WorldToObjectEXT" 46 Name 69 "v15" 47 Name 70 "gl_GeometryIndexEXT" 48 Name 75 "v16" 49 Name 76 "gl_ObjectToWorld3x4EXT" 50 Name 79 "v17" 51 Name 80 "gl_WorldToObject3x4EXT" 52 Name 84 "incomingPayload" 53 Name 98 "gl_SubgroupSize" 54 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 55 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 56 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 57 Decorate 23(gl_InstanceID) BuiltIn InstanceId 58 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 59 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 60 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 61 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 62 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 63 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 64 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 65 Decorate 53(gl_HitTEXT) BuiltIn RayTmaxKHR 66 Decorate 58(gl_HitKindEXT) BuiltIn HitKindKHR 67 Decorate 64(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 68 Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 69 Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 70 Decorate 76(gl_ObjectToWorld3x4EXT) BuiltIn ObjectToWorldKHR 71 Decorate 80(gl_WorldToObject3x4EXT) BuiltIn WorldToObjectKHR 72 Decorate 84(incomingPayload) Location 1 73 Decorate 98(gl_SubgroupSize) RelaxedPrecision 74 Decorate 98(gl_SubgroupSize) BuiltIn SubgroupSize 75 Decorate 99 RelaxedPrecision 76 2: TypeVoid 77 3: TypeFunction 2 78 6: TypeInt 32 0 79 7: TypeVector 6(int) 3 80 8: TypePointer Function 7(ivec3) 81 10: TypePointer Input 7(ivec3) 8211(gl_LaunchIDEXT): 10(ptr) Variable Input 8314(gl_LaunchSizeEXT): 10(ptr) Variable Input 84 16: TypeInt 32 1 85 17: TypePointer Function 16(int) 86 19: TypePointer Input 16(int) 8720(gl_PrimitiveID): 19(ptr) Variable Input 8823(gl_InstanceID): 19(ptr) Variable Input 8926(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input 90 28: TypeFloat 32 91 29: TypeVector 28(float) 3 92 30: TypePointer Function 29(fvec3) 93 32: TypePointer Input 29(fvec3) 9433(gl_WorldRayOriginEXT): 32(ptr) Variable Input 9536(gl_WorldRayDirectionEXT): 32(ptr) Variable Input 9639(gl_ObjectRayOriginEXT): 32(ptr) Variable Input 9742(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input 98 44: TypePointer Function 28(float) 99 46: TypePointer Input 28(float) 10047(gl_RayTminEXT): 46(ptr) Variable Input 10150(gl_RayTmaxEXT): 46(ptr) Variable Input 102 53(gl_HitTEXT): 46(ptr) Variable Input 103 55: TypePointer Function 6(int) 104 57: TypePointer Input 6(int) 10558(gl_HitKindEXT): 57(ptr) Variable Input 106 60: TypeMatrix 29(fvec3) 4 107 61: TypePointer Function 60 108 63: TypePointer Input 60 10964(gl_ObjectToWorldEXT): 63(ptr) Variable Input 11067(gl_WorldToObjectEXT): 63(ptr) Variable Input 11170(gl_GeometryIndexEXT): 19(ptr) Variable Input 112 72: TypeVector 28(float) 4 113 73: TypeMatrix 72(fvec4) 3 114 74: TypePointer Function 73 11576(gl_ObjectToWorld3x4EXT): 63(ptr) Variable Input 11680(gl_WorldToObject3x4EXT): 63(ptr) Variable Input 117 83: TypePointer IncomingRayPayloadKHR 72(fvec4) 11884(incomingPayload): 83(ptr) Variable IncomingRayPayloadKHR 119 85: 28(float) Constant 1056964608 120 86: 72(fvec4) ConstantComposite 85 85 85 85 121 88: 16(int) Constant 1 122 89: TypeBool 123 94: 6(int) Constant 0 12498(gl_SubgroupSize): 57(ptr) Variable Input 125 101: TypePointer IncomingRayPayloadKHR 28(float) 126 4(main): 2 Function None 3 127 5: Label 128 9(v0): 8(ptr) Variable Function 129 13(v1): 8(ptr) Variable Function 130 18(v2): 17(ptr) Variable Function 131 22(v3): 17(ptr) Variable Function 132 25(v4): 17(ptr) Variable Function 133 31(v5): 30(ptr) Variable Function 134 35(v6): 30(ptr) Variable Function 135 38(v7): 30(ptr) Variable Function 136 41(v8): 30(ptr) Variable Function 137 45(v9): 44(ptr) Variable Function 138 49(v10): 44(ptr) Variable Function 139 52(v11): 44(ptr) Variable Function 140 56(v12): 55(ptr) Variable Function 141 62(v13): 61(ptr) Variable Function 142 66(v14): 61(ptr) Variable Function 143 69(v15): 17(ptr) Variable Function 144 75(v16): 74(ptr) Variable Function 145 79(v17): 74(ptr) Variable Function 146 12: 7(ivec3) Load 11(gl_LaunchIDEXT) 147 Store 9(v0) 12 148 15: 7(ivec3) Load 14(gl_LaunchSizeEXT) 149 Store 13(v1) 15 150 21: 16(int) Load 20(gl_PrimitiveID) 151 Store 18(v2) 21 152 24: 16(int) Load 23(gl_InstanceID) 153 Store 22(v3) 24 154 27: 16(int) Load 26(gl_InstanceCustomIndexEXT) 155 Store 25(v4) 27 156 34: 29(fvec3) Load 33(gl_WorldRayOriginEXT) 157 Store 31(v5) 34 158 37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT) 159 Store 35(v6) 37 160 40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT) 161 Store 38(v7) 40 162 43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT) 163 Store 41(v8) 43 164 48: 28(float) Load 47(gl_RayTminEXT) 165 Store 45(v9) 48 166 51: 28(float) Load 50(gl_RayTmaxEXT) 167 Store 49(v10) 51 168 54: 28(float) Load 53(gl_HitTEXT) 169 Store 52(v11) 54 170 59: 6(int) Load 58(gl_HitKindEXT) 171 Store 56(v12) 59 172 65: 60 Load 64(gl_ObjectToWorldEXT) 173 Store 62(v13) 65 174 68: 60 Load 67(gl_WorldToObjectEXT) 175 Store 66(v14) 68 176 71: 16(int) Load 70(gl_GeometryIndexEXT) 177 Store 69(v15) 71 178 77: 60 Load 76(gl_ObjectToWorld3x4EXT) 179 78: 73 Transpose 77 180 Store 75(v16) 78 181 81: 60 Load 80(gl_WorldToObject3x4EXT) 182 82: 73 Transpose 81 183 Store 79(v17) 82 184 Store 84(incomingPayload) 86 185 87: 16(int) Load 18(v2) 186 90: 89(bool) IEqual 87 88 187 SelectionMerge 92 None 188 BranchConditional 90 91 92 189 91: Label 190 IgnoreIntersectionKHR 191 92: Label 192 99: 6(int) Load 98(gl_SubgroupSize) 193 100: 28(float) ConvertUToF 99 194 102: 101(ptr) AccessChain 84(incomingPayload) 94 195 103: 28(float) Load 102 196 104: 28(float) FAdd 103 100 197 105: 101(ptr) AccessChain 84(incomingPayload) 94 198 Store 105 104 199 TerminateRayKHR 200 FunctionEnd 201