1spv.AnyHitShader.rahit 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 80 5 6 Capability RayTracingNV 7 Extension "SPV_NV_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 57 63 66 11 Source GLSL 460 12 SourceExtension "GL_NV_ray_tracing" 13 Name 4 "main" 14 Name 9 "v0" 15 Name 11 "gl_LaunchIDNV" 16 Name 13 "v1" 17 Name 14 "gl_LaunchSizeNV" 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_InstanceCustomIndexNV" 24 Name 31 "v5" 25 Name 33 "gl_WorldRayOriginNV" 26 Name 35 "v6" 27 Name 36 "gl_WorldRayDirectionNV" 28 Name 38 "v7" 29 Name 39 "gl_ObjectRayOriginNV" 30 Name 41 "v8" 31 Name 42 "gl_ObjectRayDirectionNV" 32 Name 45 "v9" 33 Name 47 "gl_RayTminNV" 34 Name 49 "v10" 35 Name 50 "gl_RayTmaxNV" 36 Name 52 "v11" 37 Name 55 "v12" 38 Name 57 "gl_HitKindNV" 39 Name 61 "v13" 40 Name 63 "gl_ObjectToWorldNV" 41 Name 65 "v14" 42 Name 66 "gl_WorldToObjectNV" 43 Name 70 "incomingPayload" 44 Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR 45 Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR 46 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 47 Decorate 23(gl_InstanceID) BuiltIn InstanceId 48 Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexKHR 49 Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginKHR 50 Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionKHR 51 Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginKHR 52 Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionKHR 53 Decorate 47(gl_RayTminNV) BuiltIn RayTminKHR 54 Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxKHR 55 Decorate 57(gl_HitKindNV) BuiltIn HitKindKHR 56 Decorate 63(gl_ObjectToWorldNV) BuiltIn ObjectToWorldKHR 57 Decorate 66(gl_WorldToObjectNV) BuiltIn WorldToObjectKHR 58 Decorate 70(incomingPayload) Location 1 59 2: TypeVoid 60 3: TypeFunction 2 61 6: TypeInt 32 0 62 7: TypeVector 6(int) 3 63 8: TypePointer Function 7(ivec3) 64 10: TypePointer Input 7(ivec3) 6511(gl_LaunchIDNV): 10(ptr) Variable Input 6614(gl_LaunchSizeNV): 10(ptr) Variable Input 67 16: TypeInt 32 1 68 17: TypePointer Function 16(int) 69 19: TypePointer Input 16(int) 7020(gl_PrimitiveID): 19(ptr) Variable Input 7123(gl_InstanceID): 19(ptr) Variable Input 7226(gl_InstanceCustomIndexNV): 19(ptr) Variable Input 73 28: TypeFloat 32 74 29: TypeVector 28(float) 3 75 30: TypePointer Function 29(fvec3) 76 32: TypePointer Input 29(fvec3) 7733(gl_WorldRayOriginNV): 32(ptr) Variable Input 7836(gl_WorldRayDirectionNV): 32(ptr) Variable Input 7939(gl_ObjectRayOriginNV): 32(ptr) Variable Input 8042(gl_ObjectRayDirectionNV): 32(ptr) Variable Input 81 44: TypePointer Function 28(float) 82 46: TypePointer Input 28(float) 8347(gl_RayTminNV): 46(ptr) Variable Input 8450(gl_RayTmaxNV): 46(ptr) Variable Input 85 54: TypePointer Function 6(int) 86 56: TypePointer Input 6(int) 8757(gl_HitKindNV): 56(ptr) Variable Input 88 59: TypeMatrix 29(fvec3) 4 89 60: TypePointer Function 59 90 62: TypePointer Input 59 9163(gl_ObjectToWorldNV): 62(ptr) Variable Input 9266(gl_WorldToObjectNV): 62(ptr) Variable Input 93 68: TypeVector 28(float) 4 94 69: TypePointer IncomingRayPayloadKHR 68(fvec4) 9570(incomingPayload): 69(ptr) Variable IncomingRayPayloadKHR 96 71: 28(float) Constant 1056964608 97 72: 68(fvec4) ConstantComposite 71 71 71 71 98 74: 16(int) Constant 1 99 75: TypeBool 100 4(main): 2 Function None 3 101 5: Label 102 9(v0): 8(ptr) Variable Function 103 13(v1): 8(ptr) Variable Function 104 18(v2): 17(ptr) Variable Function 105 22(v3): 17(ptr) Variable Function 106 25(v4): 17(ptr) Variable Function 107 31(v5): 30(ptr) Variable Function 108 35(v6): 30(ptr) Variable Function 109 38(v7): 30(ptr) Variable Function 110 41(v8): 30(ptr) Variable Function 111 45(v9): 44(ptr) Variable Function 112 49(v10): 44(ptr) Variable Function 113 52(v11): 44(ptr) Variable Function 114 55(v12): 54(ptr) Variable Function 115 61(v13): 60(ptr) Variable Function 116 65(v14): 60(ptr) Variable Function 117 12: 7(ivec3) Load 11(gl_LaunchIDNV) 118 Store 9(v0) 12 119 15: 7(ivec3) Load 14(gl_LaunchSizeNV) 120 Store 13(v1) 15 121 21: 16(int) Load 20(gl_PrimitiveID) 122 Store 18(v2) 21 123 24: 16(int) Load 23(gl_InstanceID) 124 Store 22(v3) 24 125 27: 16(int) Load 26(gl_InstanceCustomIndexNV) 126 Store 25(v4) 27 127 34: 29(fvec3) Load 33(gl_WorldRayOriginNV) 128 Store 31(v5) 34 129 37: 29(fvec3) Load 36(gl_WorldRayDirectionNV) 130 Store 35(v6) 37 131 40: 29(fvec3) Load 39(gl_ObjectRayOriginNV) 132 Store 38(v7) 40 133 43: 29(fvec3) Load 42(gl_ObjectRayDirectionNV) 134 Store 41(v8) 43 135 48: 28(float) Load 47(gl_RayTminNV) 136 Store 45(v9) 48 137 51: 28(float) Load 50(gl_RayTmaxNV) 138 Store 49(v10) 51 139 53: 28(float) Load 50(gl_RayTmaxNV) 140 Store 52(v11) 53 141 58: 6(int) Load 57(gl_HitKindNV) 142 Store 55(v12) 58 143 64: 59 Load 63(gl_ObjectToWorldNV) 144 Store 61(v13) 64 145 67: 59 Load 66(gl_WorldToObjectNV) 146 Store 65(v14) 67 147 Store 70(incomingPayload) 72 148 73: 16(int) Load 18(v2) 149 76: 75(bool) IEqual 73 74 150 SelectionMerge 78 None 151 BranchConditional 76 77 79 152 77: Label 153 IgnoreIntersectionNV 154 Branch 78 155 79: Label 156 TerminateRayNV 157 Branch 78 158 78: Label 159 Return 160 FunctionEnd 161