yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
33c7e308
main
1spv.ClosestHitShader.rchit 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 87 5 6 Capability RayTracingNV 7 Extension "SPV_NV_ray_tracing" 8 1: ExtInstImport "GLSL.std.450" 9 MemoryModel Logical GLSL450 10 EntryPoint ClosestHitKHR 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 "accNV" 44 Name 84 "localPayload" 45 Name 86 "incomingPayload" 46 Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR 47 Decorate 14(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR 48 Decorate 20(gl_PrimitiveID) BuiltIn PrimitiveId 49 Decorate 23(gl_InstanceID) BuiltIn InstanceId 50 Decorate 26(gl_InstanceCustomIndexNV) BuiltIn InstanceCustomIndexKHR 51 Decorate 33(gl_WorldRayOriginNV) BuiltIn WorldRayOriginKHR 52 Decorate 36(gl_WorldRayDirectionNV) BuiltIn WorldRayDirectionKHR 53 Decorate 39(gl_ObjectRayOriginNV) BuiltIn ObjectRayOriginKHR 54 Decorate 42(gl_ObjectRayDirectionNV) BuiltIn ObjectRayDirectionKHR 55 Decorate 47(gl_RayTminNV) BuiltIn RayTminKHR 56 Decorate 50(gl_RayTmaxNV) BuiltIn RayTmaxKHR 57 Decorate 57(gl_HitKindNV) BuiltIn HitKindKHR 58 Decorate 63(gl_ObjectToWorldNV) BuiltIn ObjectToWorldKHR 59 Decorate 66(gl_WorldToObjectNV) BuiltIn WorldToObjectKHR 60 Decorate 70(accNV) Binding 0 61 Decorate 70(accNV) DescriptorSet 0 62 Decorate 84(localPayload) Location 0 63 Decorate 86(incomingPayload) Location 1 64 2: TypeVoid 65 3: TypeFunction 2 66 6: TypeInt 32 0 67 7: TypeVector 6(int) 3 68 8: TypePointer Function 7(ivec3) 69 10: TypePointer Input 7(ivec3) 7011(gl_LaunchIDNV): 10(ptr) Variable Input 7114(gl_LaunchSizeNV): 10(ptr) Variable Input 72 16: TypeInt 32 1 73 17: TypePointer Function 16(int) 74 19: TypePointer Input 16(int) 7520(gl_PrimitiveID): 19(ptr) Variable Input 7623(gl_InstanceID): 19(ptr) Variable Input 7726(gl_InstanceCustomIndexNV): 19(ptr) Variable Input 78 28: TypeFloat 32 79 29: TypeVector 28(float) 3 80 30: TypePointer Function 29(fvec3) 81 32: TypePointer Input 29(fvec3) 8233(gl_WorldRayOriginNV): 32(ptr) Variable Input 8336(gl_WorldRayDirectionNV): 32(ptr) Variable Input 8439(gl_ObjectRayOriginNV): 32(ptr) Variable Input 8542(gl_ObjectRayDirectionNV): 32(ptr) Variable Input 86 44: TypePointer Function 28(float) 87 46: TypePointer Input 28(float) 8847(gl_RayTminNV): 46(ptr) Variable Input 8950(gl_RayTmaxNV): 46(ptr) Variable Input 90 54: TypePointer Function 6(int) 91 56: TypePointer Input 6(int) 9257(gl_HitKindNV): 56(ptr) Variable Input 93 59: TypeMatrix 29(fvec3) 4 94 60: TypePointer Function 59 95 62: TypePointer Input 59 9663(gl_ObjectToWorldNV): 62(ptr) Variable Input 9766(gl_WorldToObjectNV): 62(ptr) Variable Input 98 68: TypeAccelerationStructureKHR 99 69: TypePointer UniformConstant 68 100 70(accNV): 69(ptr) Variable UniformConstant 101 72: 6(int) Constant 0 102 73: 6(int) Constant 1 103 74: 6(int) Constant 2 104 75: 6(int) Constant 3 105 76: 28(float) Constant 1056964608 106 77: 29(fvec3) ConstantComposite 76 76 76 107 78: 28(float) Constant 1065353216 108 79: 29(fvec3) ConstantComposite 78 78 78 109 80: 28(float) Constant 1061158912 110 81: 16(int) Constant 1 111 82: TypeVector 28(float) 4 112 83: TypePointer RayPayloadKHR 82(fvec4) 11384(localPayload): 83(ptr) Variable RayPayloadKHR 114 85: TypePointer IncomingRayPayloadKHR 82(fvec4) 11586(incomingPayload): 85(ptr) Variable IncomingRayPayloadKHR 116 4(main): 2 Function None 3 117 5: Label 118 9(v0): 8(ptr) Variable Function 119 13(v1): 8(ptr) Variable Function 120 18(v2): 17(ptr) Variable Function 121 22(v3): 17(ptr) Variable Function 122 25(v4): 17(ptr) Variable Function 123 31(v5): 30(ptr) Variable Function 124 35(v6): 30(ptr) Variable Function 125 38(v7): 30(ptr) Variable Function 126 41(v8): 30(ptr) Variable Function 127 45(v9): 44(ptr) Variable Function 128 49(v10): 44(ptr) Variable Function 129 52(v11): 44(ptr) Variable Function 130 55(v12): 54(ptr) Variable Function 131 61(v13): 60(ptr) Variable Function 132 65(v14): 60(ptr) Variable Function 133 12: 7(ivec3) Load 11(gl_LaunchIDNV) 134 Store 9(v0) 12 135 15: 7(ivec3) Load 14(gl_LaunchSizeNV) 136 Store 13(v1) 15 137 21: 16(int) Load 20(gl_PrimitiveID) 138 Store 18(v2) 21 139 24: 16(int) Load 23(gl_InstanceID) 140 Store 22(v3) 24 141 27: 16(int) Load 26(gl_InstanceCustomIndexNV) 142 Store 25(v4) 27 143 34: 29(fvec3) Load 33(gl_WorldRayOriginNV) 144 Store 31(v5) 34 145 37: 29(fvec3) Load 36(gl_WorldRayDirectionNV) 146 Store 35(v6) 37 147 40: 29(fvec3) Load 39(gl_ObjectRayOriginNV) 148 Store 38(v7) 40 149 43: 29(fvec3) Load 42(gl_ObjectRayDirectionNV) 150 Store 41(v8) 43 151 48: 28(float) Load 47(gl_RayTminNV) 152 Store 45(v9) 48 153 51: 28(float) Load 50(gl_RayTmaxNV) 154 Store 49(v10) 51 155 53: 28(float) Load 50(gl_RayTmaxNV) 156 Store 52(v11) 53 157 58: 6(int) Load 57(gl_HitKindNV) 158 Store 55(v12) 58 159 64: 59 Load 63(gl_ObjectToWorldNV) 160 Store 61(v13) 64 161 67: 59 Load 66(gl_WorldToObjectNV) 162 Store 65(v14) 67 163 71: 68 Load 70(accNV) 164 TraceNV 71 72 73 74 75 72 77 76 79 80 81 165 Return 166 FunctionEnd