blob: 1638f7fed04f28c1ed162372dc9335bba97d3ee8 [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_2 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
%int_n7563 = OpConstant %int -7563
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_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
%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
%23 = OpLabel
%a = OpVariable %_ptr_Function_int Function
OpStore %a %int_n7563
%24 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%25 = OpLoad %int %24
%26 = OpLoad %int %a
%27 = OpSDiv %int %25 %26
%28 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%29 = OpLoad %int %28
%30 = OpIEqual %bool %27 %29
OpSelectionMerge %31 None
OpBranchConditional %30 %32 %33
%32 = OpLabel
%34 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%35 = OpLoad %int %34
%36 = OpConvertSToF %float %35
%37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%38 = OpLoad %int %37
%39 = OpConvertSToF %float %38
%40 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%41 = OpLoad %int %40
%42 = OpConvertSToF %float %41
%43 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%44 = OpLoad %int %43
%45 = OpConvertSToF %float %44
%46 = OpCompositeConstruct %v4float %36 %39 %42 %45
OpStore %_GLF_color %46
OpBranch %31
%33 = OpLabel
%47 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%48 = OpLoad %int %47
%49 = OpConvertSToF %float %48
%50 = OpCompositeConstruct %v4float %49 %49 %49 %49
OpStore %_GLF_color %50
OpBranch %31
%31 = OpLabel
OpReturn
OpFunctionEnd