1spv.ext.AnyHitShader.rahit 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 116 5 6 Capability GroupNonUniform 7 Capability RayTracingKHR 8 Capability RayTracingPositionFetchKHR 9 Capability RayCullMaskKHR 10 Extension "SPV_KHR_ray_cull_mask" 11 Extension "SPV_KHR_ray_tracing" 12 Extension "SPV_KHR_ray_tracing_position_fetch" 13 1: ExtInstImport "GLSL.std.450" 14 MemoryModel Logical GLSL450 15 EntryPoint AnyHitKHR 4 "main" 11 14 20 23 26 33 36 39 42 47 50 53 58 64 67 70 82 88 93 107 16 Source GLSL 460 17 SourceExtension "GL_EXT_ray_cull_mask" 18 SourceExtension "GL_EXT_ray_tracing" 19 SourceExtension "GL_EXT_ray_tracing_position_fetch" 20 SourceExtension "GL_KHR_shader_subgroup_basic" 21 Name 4 "main" 22 Name 9 "v0" 23 Name 11 "gl_LaunchIDEXT" 24 Name 13 "v1" 25 Name 14 "gl_LaunchSizeEXT" 26 Name 18 "v2" 27 Name 20 "gl_PrimitiveID" 28 Name 22 "v3" 29 Name 23 "gl_InstanceID" 30 Name 25 "v4" 31 Name 26 "gl_InstanceCustomIndexEXT" 32 Name 31 "v5" 33 Name 33 "gl_WorldRayOriginEXT" 34 Name 35 "v6" 35 Name 36 "gl_WorldRayDirectionEXT" 36 Name 38 "v7" 37 Name 39 "gl_ObjectRayOriginEXT" 38 Name 41 "v8" 39 Name 42 "gl_ObjectRayDirectionEXT" 40 Name 45 "v9" 41 Name 47 "gl_RayTminEXT" 42 Name 49 "v10" 43 Name 50 "gl_RayTmaxEXT" 44 Name 52 "v11" 45 Name 53 "gl_HitTEXT" 46 Name 56 "v12" 47 Name 58 "gl_HitKindEXT" 48 Name 62 "v13" 49 Name 64 "gl_ObjectToWorldEXT" 50 Name 66 "v14" 51 Name 67 "gl_WorldToObjectEXT" 52 Name 69 "v15" 53 Name 70 "gl_GeometryIndexEXT" 54 Name 75 "v16" 55 Name 78 "v17" 56 Name 81 "v18" 57 Name 82 "gl_CullMaskEXT" 58 Name 84 "v19" 59 Name 88 "gl_HitTriangleVertexPositionsEXT" 60 Name 93 "incomingPayload" 61 Name 107 "gl_SubgroupSize" 62 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 63 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 64 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 65 Decorate 23(gl_InstanceID) BuiltIn InstanceId 66 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 67 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 68 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 69 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 70 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 71 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 72 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 73 Decorate 53(gl_HitTEXT) BuiltIn RayTmaxKHR 74 Decorate 58(gl_HitKindEXT) BuiltIn HitKindKHR 75 Decorate 64(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 76 Decorate 67(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 77 Decorate 70(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 78 Decorate 82(gl_CullMaskEXT) BuiltIn CullMaskKHR 79 Decorate 88(gl_HitTriangleVertexPositionsEXT) BuiltIn HitTriangleVertexPositionsKHR 80 Decorate 107(gl_SubgroupSize) RelaxedPrecision 81 Decorate 107(gl_SubgroupSize) BuiltIn SubgroupSize 82 Decorate 108 RelaxedPrecision 83 Decorate 109 RelaxedPrecision 84 2: TypeVoid 85 3: TypeFunction 2 86 6: TypeInt 32 0 87 7: TypeVector 6(int) 3 88 8: TypePointer Function 7(ivec3) 89 10: TypePointer Input 7(ivec3) 9011(gl_LaunchIDEXT): 10(ptr) Variable Input 9114(gl_LaunchSizeEXT): 10(ptr) Variable Input 92 16: TypeInt 32 1 93 17: TypePointer Function 16(int) 94 19: TypePointer Input 16(int) 9520(gl_PrimitiveID): 19(ptr) Variable Input 9623(gl_InstanceID): 19(ptr) Variable Input 9726(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input 98 28: TypeFloat 32 99 29: TypeVector 28(float) 3 100 30: TypePointer Function 29(fvec3) 101 32: TypePointer Input 29(fvec3) 10233(gl_WorldRayOriginEXT): 32(ptr) Variable Input 10336(gl_WorldRayDirectionEXT): 32(ptr) Variable Input 10439(gl_ObjectRayOriginEXT): 32(ptr) Variable Input 10542(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input 106 44: TypePointer Function 28(float) 107 46: TypePointer Input 28(float) 10847(gl_RayTminEXT): 46(ptr) Variable Input 10950(gl_RayTmaxEXT): 46(ptr) Variable Input 110 53(gl_HitTEXT): 46(ptr) Variable Input 111 55: TypePointer Function 6(int) 112 57: TypePointer Input 6(int) 11358(gl_HitKindEXT): 57(ptr) Variable Input 114 60: TypeMatrix 29(fvec3) 4 115 61: TypePointer Function 60 116 63: TypePointer Input 60 11764(gl_ObjectToWorldEXT): 63(ptr) Variable Input 11867(gl_WorldToObjectEXT): 63(ptr) Variable Input 11970(gl_GeometryIndexEXT): 19(ptr) Variable Input 120 72: TypeVector 28(float) 4 121 73: TypeMatrix 72(fvec4) 3 122 74: TypePointer Function 73 12382(gl_CullMaskEXT): 57(ptr) Variable Input 124 85: 6(int) Constant 3 125 86: TypeArray 29(fvec3) 85 126 87: TypePointer Input 86 12788(gl_HitTriangleVertexPositionsEXT): 87(ptr) Variable Input 128 89: 16(int) Constant 0 129 92: TypePointer IncomingRayPayloadKHR 72(fvec4) 13093(incomingPayload): 92(ptr) Variable IncomingRayPayloadKHR 131 94: 28(float) Constant 1056964608 132 95: 72(fvec4) ConstantComposite 94 94 94 94 133 97: 16(int) Constant 1 134 98: TypeBool 135 103: 6(int) Constant 0 136107(gl_SubgroupSize): 57(ptr) Variable Input 137 110: TypePointer IncomingRayPayloadKHR 28(float) 138 4(main): 2 Function None 3 139 5: Label 140 9(v0): 8(ptr) Variable Function 141 13(v1): 8(ptr) Variable Function 142 18(v2): 17(ptr) Variable Function 143 22(v3): 17(ptr) Variable Function 144 25(v4): 17(ptr) Variable Function 145 31(v5): 30(ptr) Variable Function 146 35(v6): 30(ptr) Variable Function 147 38(v7): 30(ptr) Variable Function 148 41(v8): 30(ptr) Variable Function 149 45(v9): 44(ptr) Variable Function 150 49(v10): 44(ptr) Variable Function 151 52(v11): 44(ptr) Variable Function 152 56(v12): 55(ptr) Variable Function 153 62(v13): 61(ptr) Variable Function 154 66(v14): 61(ptr) Variable Function 155 69(v15): 17(ptr) Variable Function 156 75(v16): 74(ptr) Variable Function 157 78(v17): 74(ptr) Variable Function 158 81(v18): 55(ptr) Variable Function 159 84(v19): 30(ptr) Variable Function 160 12: 7(ivec3) Load 11(gl_LaunchIDEXT) 161 Store 9(v0) 12 162 15: 7(ivec3) Load 14(gl_LaunchSizeEXT) 163 Store 13(v1) 15 164 21: 16(int) Load 20(gl_PrimitiveID) 165 Store 18(v2) 21 166 24: 16(int) Load 23(gl_InstanceID) 167 Store 22(v3) 24 168 27: 16(int) Load 26(gl_InstanceCustomIndexEXT) 169 Store 25(v4) 27 170 34: 29(fvec3) Load 33(gl_WorldRayOriginEXT) 171 Store 31(v5) 34 172 37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT) 173 Store 35(v6) 37 174 40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT) 175 Store 38(v7) 40 176 43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT) 177 Store 41(v8) 43 178 48: 28(float) Load 47(gl_RayTminEXT) 179 Store 45(v9) 48 180 51: 28(float) Load 50(gl_RayTmaxEXT) 181 Store 49(v10) 51 182 54: 28(float) Load 53(gl_HitTEXT) 183 Store 52(v11) 54 184 59: 6(int) Load 58(gl_HitKindEXT) 185 Store 56(v12) 59 186 65: 60 Load 64(gl_ObjectToWorldEXT) 187 Store 62(v13) 65 188 68: 60 Load 67(gl_WorldToObjectEXT) 189 Store 66(v14) 68 190 71: 16(int) Load 70(gl_GeometryIndexEXT) 191 Store 69(v15) 71 192 76: 60 Load 64(gl_ObjectToWorldEXT) 193 77: 73 Transpose 76 194 Store 75(v16) 77 195 79: 60 Load 67(gl_WorldToObjectEXT) 196 80: 73 Transpose 79 197 Store 78(v17) 80 198 83: 6(int) Load 82(gl_CullMaskEXT) 199 Store 81(v18) 83 200 90: 32(ptr) AccessChain 88(gl_HitTriangleVertexPositionsEXT) 89 201 91: 29(fvec3) Load 90 202 Store 84(v19) 91 203 Store 93(incomingPayload) 95 204 96: 16(int) Load 18(v2) 205 99: 98(bool) IEqual 96 97 206 SelectionMerge 101 None 207 BranchConditional 99 100 101 208 100: Label 209 IgnoreIntersectionKHR 210 101: Label 211 108: 6(int) Load 107(gl_SubgroupSize) 212 109: 28(float) ConvertUToF 108 213 111: 110(ptr) AccessChain 93(incomingPayload) 103 214 112: 28(float) Load 111 215 113: 28(float) FAdd 112 109 216 114: 110(ptr) AccessChain 93(incomingPayload) 103 217 Store 114 113 218 TerminateRayKHR 219 FunctionEnd 220