blob: a73279faaf9fc35009dc3c755f9e3aea1b5ce98b [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 %x "x"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "one"
OpName %_ ""
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
%8 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_5 = OpConstant %int 5
%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_n4 = OpConstant %int -4
%bool = OpTypeBool
%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
%22 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%23 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %8
%24 = OpLabel
%x = OpVariable %_ptr_Function_int Function
%25 = OpAccessChain %_ptr_Uniform_int %_ %int_0
%26 = OpLoad %int %25
%27 = OpISub %int %int_5 %26
%28 = OpSNegate %int %27
OpStore %x %28
%29 = OpLoad %int %x
%30 = OpIEqual %bool %29 %int_n4
OpSelectionMerge %31 None
OpBranchConditional %30 %32 %33
%32 = OpLabel
OpStore %_GLF_color %22
OpBranch %31
%33 = OpLabel
OpStore %_GLF_color %23
OpBranch %31
%31 = OpLabel
OpReturn
OpFunctionEnd