#version 460
#extension GL_EXT_ray_tracing : require
#extension GL_EXT_nonuniform_qualifier : require

struct _6
{
    float _m0;
};

struct _10
{
    vec2 _m0;
};

layout(location = 0) rayPayloadInEXT _6 payload;
hitAttributeEXT _10 hit;

void main()
{
    if (hit._m0.x > 10.0)
    {
        payload._m0 = 10.0;
        terminateRayEXT;
    }
    else
    {
        ignoreIntersectionEXT;
    }
}


#if 0
// SPIR-V disassembly
; SPIR-V
; Version: 1.4
; Generator: Unknown(30017); 21022
; Bound: 28
; Schema: 0
OpCapability Shader
OpCapability UniformBufferArrayDynamicIndexing
OpCapability SampledImageArrayDynamicIndexing
OpCapability StorageBufferArrayDynamicIndexing
OpCapability StorageImageArrayDynamicIndexing
OpCapability RayTracingKHR
OpCapability RuntimeDescriptorArray
OpCapability UniformBufferArrayNonUniformIndexing
OpCapability SampledImageArrayNonUniformIndexing
OpCapability StorageBufferArrayNonUniformIndexing
OpCapability StorageImageArrayNonUniformIndexing
OpExtension "SPV_EXT_descriptor_indexing"
OpExtension "SPV_KHR_ray_tracing"
OpMemoryModel Logical GLSL450
OpEntryPoint AnyHitKHR %3 "main" %8 %12
OpName %3 "main"
OpName %6 ""
OpName %8 "payload"
OpName %10 ""
OpName %12 "hit"
%1 = OpTypeVoid
%2 = OpTypeFunction %1
%5 = OpTypeFloat 32
%6 = OpTypeStruct %5
%7 = OpTypePointer IncomingRayPayloadKHR %6
%8 = OpVariable %7 IncomingRayPayloadKHR
%9 = OpTypeVector %5 2
%10 = OpTypeStruct %9
%11 = OpTypePointer HitAttributeKHR %10
%12 = OpVariable %11 HitAttributeKHR
%13 = OpTypePointer HitAttributeKHR %9
%15 = OpTypeInt 32 0
%16 = OpConstant %15 0
%19 = OpTypeBool
%21 = OpConstant %5 10
%22 = OpTypePointer IncomingRayPayloadKHR %5
%3 = OpFunction %1 None %2
%4 = OpLabel
OpBranch %24
%24 = OpLabel
%14 = OpInBoundsAccessChain %13 %12 %16
%17 = OpLoad %9 %14
%18 = OpCompositeExtract %5 %17 0
%20 = OpFOrdGreaterThan %19 %18 %21
OpSelectionMerge %27 None
OpBranchConditional %20 %26 %25
%26 = OpLabel
%23 = OpInBoundsAccessChain %22 %8 %16
OpStore %23 %21
OpTerminateRayKHR
%25 = OpLabel
OpIgnoreIntersectionKHR
%27 = OpLabel
OpUnreachable
OpFunctionEnd
#endif
