blob: 3d402359ed509d0d17854e56f7aac43e188c066b [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %a "a"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_3 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%buf0 = OpTypeStruct %_arr_int_uint_3
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_2 = OpConstant %int 2
%int_63677 = OpConstant %int 63677
%v2int = OpTypeVector %int 2
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %9
%26 = OpLabel
%a = OpVariable %_ptr_Function_int Function
%27 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%28 = OpLoad %int %27
OpStore %a %28
%29 = OpLoad %int %a
%30 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%31 = OpLoad %int %30
%32 = OpCompositeConstruct %v2int %31 %int_63677
%33 = OpCompositeConstruct %v2int %29 %29
%34 = OpSDiv %v2int %33 %32
%35 = OpCompositeExtract %int %34 1
%36 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%37 = OpLoad %int %36
%38 = OpIEqual %bool %35 %37
OpSelectionMerge %39 None
OpBranchConditional %38 %40 %41
%40 = OpLabel
%42 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%43 = OpLoad %int %42
%44 = OpConvertSToF %float %43
%45 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%46 = OpLoad %int %45
%47 = OpConvertSToF %float %46
%48 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%49 = OpLoad %int %48
%50 = OpConvertSToF %float %49
%51 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%52 = OpLoad %int %51
%53 = OpConvertSToF %float %52
%54 = OpCompositeConstruct %v4float %44 %47 %50 %53
OpStore %_GLF_color %54
OpBranch %39
%41 = OpLabel
%55 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%56 = OpLoad %int %55
%57 = OpConvertSToF %float %56
%58 = OpCompositeConstruct %v4float %57 %57 %57 %57
OpStore %_GLF_color %58
OpBranch %39
%39 = OpLabel
OpReturn
OpFunctionEnd