1spv.ext.AnyHitShader.rahit 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 115 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 57 63 66 69 81 87 92 106 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 55 "v12" 46 Name 57 "gl_HitKindEXT" 47 Name 61 "v13" 48 Name 63 "gl_ObjectToWorldEXT" 49 Name 65 "v14" 50 Name 66 "gl_WorldToObjectEXT" 51 Name 68 "v15" 52 Name 69 "gl_GeometryIndexEXT" 53 Name 74 "v16" 54 Name 77 "v17" 55 Name 80 "v18" 56 Name 81 "gl_CullMaskEXT" 57 Name 83 "v19" 58 Name 87 "gl_HitTriangleVertexPositionsEXT" 59 Name 92 "incomingPayload" 60 Name 106 "gl_SubgroupSize" 61 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 62 Decorate 14(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 63 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 64 Decorate 23(gl_InstanceID) BuiltIn InstanceId 65 Decorate 26(gl_InstanceCustomIndexEXT) BuiltIn InstanceCustomIndexKHR 66 Decorate 33(gl_WorldRayOriginEXT) BuiltIn WorldRayOriginKHR 67 Decorate 36(gl_WorldRayDirectionEXT) BuiltIn WorldRayDirectionKHR 68 Decorate 39(gl_ObjectRayOriginEXT) BuiltIn ObjectRayOriginKHR 69 Decorate 42(gl_ObjectRayDirectionEXT) BuiltIn ObjectRayDirectionKHR 70 Decorate 47(gl_RayTminEXT) BuiltIn RayTminKHR 71 Decorate 50(gl_RayTmaxEXT) BuiltIn RayTmaxKHR 72 Decorate 57(gl_HitKindEXT) BuiltIn HitKindKHR 73 Decorate 63(gl_ObjectToWorldEXT) BuiltIn ObjectToWorldKHR 74 Decorate 66(gl_WorldToObjectEXT) BuiltIn WorldToObjectKHR 75 Decorate 69(gl_GeometryIndexEXT) BuiltIn RayGeometryIndexKHR 76 Decorate 81(gl_CullMaskEXT) BuiltIn CullMaskKHR 77 Decorate 87(gl_HitTriangleVertexPositionsEXT) BuiltIn HitTriangleVertexPositionsKHR 78 Decorate 106(gl_SubgroupSize) RelaxedPrecision 79 Decorate 106(gl_SubgroupSize) BuiltIn SubgroupSize 80 Decorate 107 RelaxedPrecision 81 Decorate 108 RelaxedPrecision 82 2: TypeVoid 83 3: TypeFunction 2 84 6: TypeInt 32 0 85 7: TypeVector 6(int) 3 86 8: TypePointer Function 7(ivec3) 87 10: TypePointer Input 7(ivec3) 8811(gl_LaunchIDEXT): 10(ptr) Variable Input 8914(gl_LaunchSizeEXT): 10(ptr) Variable Input 90 16: TypeInt 32 1 91 17: TypePointer Function 16(int) 92 19: TypePointer Input 16(int) 9320(gl_PrimitiveID): 19(ptr) Variable Input 9423(gl_InstanceID): 19(ptr) Variable Input 9526(gl_InstanceCustomIndexEXT): 19(ptr) Variable Input 96 28: TypeFloat 32 97 29: TypeVector 28(float) 3 98 30: TypePointer Function 29(fvec3) 99 32: TypePointer Input 29(fvec3) 10033(gl_WorldRayOriginEXT): 32(ptr) Variable Input 10136(gl_WorldRayDirectionEXT): 32(ptr) Variable Input 10239(gl_ObjectRayOriginEXT): 32(ptr) Variable Input 10342(gl_ObjectRayDirectionEXT): 32(ptr) Variable Input 104 44: TypePointer Function 28(float) 105 46: TypePointer Input 28(float) 10647(gl_RayTminEXT): 46(ptr) Variable Input 10750(gl_RayTmaxEXT): 46(ptr) Variable Input 108 54: TypePointer Function 6(int) 109 56: TypePointer Input 6(int) 11057(gl_HitKindEXT): 56(ptr) Variable Input 111 59: TypeMatrix 29(fvec3) 4 112 60: TypePointer Function 59 113 62: TypePointer Input 59 11463(gl_ObjectToWorldEXT): 62(ptr) Variable Input 11566(gl_WorldToObjectEXT): 62(ptr) Variable Input 11669(gl_GeometryIndexEXT): 19(ptr) Variable Input 117 71: TypeVector 28(float) 4 118 72: TypeMatrix 71(fvec4) 3 119 73: TypePointer Function 72 12081(gl_CullMaskEXT): 56(ptr) Variable Input 121 84: 6(int) Constant 3 122 85: TypeArray 29(fvec3) 84 123 86: TypePointer Input 85 12487(gl_HitTriangleVertexPositionsEXT): 86(ptr) Variable Input 125 88: 16(int) Constant 0 126 91: TypePointer IncomingRayPayloadKHR 71(fvec4) 12792(incomingPayload): 91(ptr) Variable IncomingRayPayloadKHR 128 93: 28(float) Constant 1056964608 129 94: 71(fvec4) ConstantComposite 93 93 93 93 130 96: 16(int) Constant 1 131 97: TypeBool 132 102: 6(int) Constant 0 133106(gl_SubgroupSize): 56(ptr) Variable Input 134 109: TypePointer IncomingRayPayloadKHR 28(float) 135 4(main): 2 Function None 3 136 5: Label 137 9(v0): 8(ptr) Variable Function 138 13(v1): 8(ptr) Variable Function 139 18(v2): 17(ptr) Variable Function 140 22(v3): 17(ptr) Variable Function 141 25(v4): 17(ptr) Variable Function 142 31(v5): 30(ptr) Variable Function 143 35(v6): 30(ptr) Variable Function 144 38(v7): 30(ptr) Variable Function 145 41(v8): 30(ptr) Variable Function 146 45(v9): 44(ptr) Variable Function 147 49(v10): 44(ptr) Variable Function 148 52(v11): 44(ptr) Variable Function 149 55(v12): 54(ptr) Variable Function 150 61(v13): 60(ptr) Variable Function 151 65(v14): 60(ptr) Variable Function 152 68(v15): 17(ptr) Variable Function 153 74(v16): 73(ptr) Variable Function 154 77(v17): 73(ptr) Variable Function 155 80(v18): 54(ptr) Variable Function 156 83(v19): 30(ptr) Variable Function 157 12: 7(ivec3) Load 11(gl_LaunchIDEXT) 158 Store 9(v0) 12 159 15: 7(ivec3) Load 14(gl_LaunchSizeEXT) 160 Store 13(v1) 15 161 21: 16(int) Load 20(gl_PrimitiveID) 162 Store 18(v2) 21 163 24: 16(int) Load 23(gl_InstanceID) 164 Store 22(v3) 24 165 27: 16(int) Load 26(gl_InstanceCustomIndexEXT) 166 Store 25(v4) 27 167 34: 29(fvec3) Load 33(gl_WorldRayOriginEXT) 168 Store 31(v5) 34 169 37: 29(fvec3) Load 36(gl_WorldRayDirectionEXT) 170 Store 35(v6) 37 171 40: 29(fvec3) Load 39(gl_ObjectRayOriginEXT) 172 Store 38(v7) 40 173 43: 29(fvec3) Load 42(gl_ObjectRayDirectionEXT) 174 Store 41(v8) 43 175 48: 28(float) Load 47(gl_RayTminEXT) 176 Store 45(v9) 48 177 51: 28(float) Load 50(gl_RayTmaxEXT) 178 Store 49(v10) 51 179 53: 28(float) Load 50(gl_RayTmaxEXT) 180 Store 52(v11) 53 181 58: 6(int) Load 57(gl_HitKindEXT) 182 Store 55(v12) 58 183 64: 59 Load 63(gl_ObjectToWorldEXT) 184 Store 61(v13) 64 185 67: 59 Load 66(gl_WorldToObjectEXT) 186 Store 65(v14) 67 187 70: 16(int) Load 69(gl_GeometryIndexEXT) 188 Store 68(v15) 70 189 75: 59 Load 63(gl_ObjectToWorldEXT) 190 76: 72 Transpose 75 191 Store 74(v16) 76 192 78: 59 Load 66(gl_WorldToObjectEXT) 193 79: 72 Transpose 78 194 Store 77(v17) 79 195 82: 6(int) Load 81(gl_CullMaskEXT) 196 Store 80(v18) 82 197 89: 32(ptr) AccessChain 87(gl_HitTriangleVertexPositionsEXT) 88 198 90: 29(fvec3) Load 89 199 Store 83(v19) 90 200 Store 92(incomingPayload) 94 201 95: 16(int) Load 18(v2) 202 98: 97(bool) IEqual 95 96 203 SelectionMerge 100 None 204 BranchConditional 98 99 100 205 99: Label 206 IgnoreIntersectionKHR 207 100: Label 208 107: 6(int) Load 106(gl_SubgroupSize) 209 108: 28(float) ConvertUToF 107 210 110: 109(ptr) AccessChain 92(incomingPayload) 102 211 111: 28(float) Load 110 212 112: 28(float) FAdd 111 108 213 113: 109(ptr) AccessChain 92(incomingPayload) 102 214 Store 113 112 215 TerminateRayKHR 216 FunctionEnd 217