; SPIR-V ; Version: 1.0 ; Generator: Google spiregg; 0 ; Bound: 42 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %cs_test "main" %gl_GlobalInvocationID %gl_LocalInvocationIndex OpExecutionMode %cs_test LocalSize 8 8 1 OpSource HLSL 600 OpName %type_2d_image "type.2d.image" OpName %outImageTexture "outImageTexture" OpName %cs_test "cs_test" OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId OpDecorate %gl_LocalInvocationIndex BuiltIn LocalInvocationIndex OpDecorate %outImageTexture DescriptorSet 0 OpDecorate %outImageTexture Binding 1 %float = OpTypeFloat 32 %float_5 = OpConstant %float 5 %float_1 = OpConstant %float 1 %int = OpTypeInt 32 1 %int_7 = OpConstant %int 7 %int_0 = OpConstant %int 0 %int_1 = OpConstant %int 1 %type_2d_image = OpTypeImage %float 2D 2 0 0 2 Rgba32f %_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image %uint = OpTypeInt 32 0 %v3uint = OpTypeVector %uint 3 %_ptr_Input_v3uint = OpTypePointer Input %v3uint %_ptr_Input_uint = OpTypePointer Input %uint %void = OpTypeVoid %19 = OpTypeFunction %void %v2uint = OpTypeVector %uint 2 %v4float = OpTypeVector %float 4 %bool = OpTypeBool %outImageTexture = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input %gl_LocalInvocationIndex = OpVariable %_ptr_Input_uint Input %cs_test = OpFunction %void None %19 %23 = OpLabel %24 = OpLoad %v3uint %gl_GlobalInvocationID %25 = OpVectorShuffle %v2uint %24 %24 0 1 OpBranch %26 %26 = OpLabel %27 = OpPhi %int %int_7 %23 %28 %29 %30 = OpPhi %int %int_7 %23 %27 %29 %31 = OpSGreaterThanEqual %bool %27 %int_0 OpLoopMerge %32 %29 None OpBranchConditional %31 %33 %32 %33 = OpLabel %34 = OpConvertSToF %float %27 %35 = OpFOrdGreaterThan %bool %float_5 %34 OpSelectionMerge %29 None OpBranchConditional %35 %36 %29 %36 = OpLabel OpBranch %32 %29 = OpLabel %28 = OpISub %int %27 %int_1 OpBranch %26 %32 = OpLabel %37 = OpISub %int %30 %int_1 %38 = OpConvertSToF %float %37 %39 = OpConvertSToF %float %30 %40 = OpCompositeConstruct %v4float %38 %39 %float_1 %float_1 %41 = OpLoad %type_2d_image %outImageTexture OpImageWrite %41 %25 %40 None OpReturn OpFunctionEnd