; SPIR-V ; Version: 1.0 ; Generator: Khronos SPIR-V Tools Assembler; 0 ; Bound: 39 ; Schema: 0 OpCapability Shader OpMemoryModel Logical GLSL450 OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID OpExecutionMode %main LocalSize 1 1 1 OpName %main "main" OpName %gl_GlobalInvocationID "gl_GlobalInvocationID" OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId OpDecorate %_struct_3 BufferBlock OpDecorate %4 DescriptorSet 0 OpDecorate %4 Binding 0 OpDecorate %5 DescriptorSet 0 OpDecorate %5 Binding 1 OpDecorate %_runtimearr_float ArrayStride 4 OpMemberDecorate %_struct_3 0 Offset 0 %bool = OpTypeBool %void = OpTypeVoid %9 = OpTypeFunction %void %uint = OpTypeInt 32 0 %int = OpTypeInt 32 1 %float = OpTypeFloat 32 %v3uint = OpTypeVector %uint 3 %v3float = OpTypeVector %float 3 %_ptr_Input_v3uint = OpTypePointer Input %v3uint %_ptr_Uniform_int = OpTypePointer Uniform %int %_ptr_Uniform_float = OpTypePointer Uniform %float %_runtimearr_int = OpTypeRuntimeArray %int %_runtimearr_float = OpTypeRuntimeArray %float %_struct_3 = OpTypeStruct %_runtimearr_float %_ptr_Uniform__struct_3 = OpTypePointer Uniform %_struct_3 %4 = OpVariable %_ptr_Uniform__struct_3 Uniform %5 = OpVariable %_ptr_Uniform__struct_3 Uniform %_ptr_Function_float = OpTypePointer Function %float %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input %true = OpConstantTrue %bool %false = OpConstantFalse %bool %int_0 = OpConstant %int 0 %float_8_5 = OpConstant %float 8.5 %main = OpFunction %void None %9 %25 = OpLabel %26 = OpVariable %_ptr_Function_float Function %float_8_5 %27 = OpLoad %v3uint %gl_GlobalInvocationID %28 = OpCompositeExtract %uint %27 0 %29 = OpAccessChain %_ptr_Uniform_float %4 %int_0 %28 %30 = OpAccessChain %_ptr_Uniform_float %5 %int_0 %28 %31 = OpLoad %float %29 %32 = OpLoad %float %26 OpBranch %33 %33 = OpLabel %34 = OpPhi %bool %true %25 %false %33 %35 = OpPhi %float %31 %25 %36 %33 %36 = OpPhi %float %32 %25 %35 %33 OpLoopMerge %37 %33 None OpBranchConditional %34 %33 %37 %37 = OpLabel %38 = OpFSub %float %35 %36 OpStore %30 %38 OpReturn OpFunctionEnd