blob: f88da4188da17a4382374d87425a85a79ee4ea1b [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %func_i1_ "func(i1;"
OpName %x "x"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "one"
OpName %_ ""
OpName %param "param"
OpName %_GLF_color "_GLF_color"
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%10 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%13 = OpTypeFunction %int %_ptr_Function_int
%buf0 = OpTypeStruct %int
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%bool = OpTypeBool
%int_n1 = OpConstant %int -1
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%25 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%26 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %10
%27 = OpLabel
%param = OpVariable %_ptr_Function_int Function
OpStore %param %int_n1
%28 = OpFunctionCall %int %func_i1_ %param
%29 = OpSLessThanEqual %bool %28 %int_0
OpSelectionMerge %30 None
OpBranchConditional %29 %31 %32
%31 = OpLabel
OpStore %_GLF_color %25
OpBranch %30
%32 = OpLabel
OpStore %_GLF_color %26
OpBranch %30
%30 = OpLabel
OpReturn
OpFunctionEnd
%func_i1_ = OpFunction %int None %13
%x = OpFunctionParameter %_ptr_Function_int
%33 = OpLabel
%34 = OpAccessChain %_ptr_Uniform_int %_ %int_0
%35 = OpLoad %int %34
%36 = OpIEqual %bool %35 %int_1
OpSelectionMerge %37 None
OpBranchConditional %36 %38 %37
%38 = OpLabel
%39 = OpLoad %int %x
OpReturnValue %39
%37 = OpLabel
%40 = OpAccessChain %_ptr_Uniform_int %_ %int_0
%41 = OpLoad %int %40
OpReturnValue %41
OpFunctionEnd