blob: 6ad3bbd7cf512fa10f99f731c6796643956e07b5 [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 %f "f"
OpName %buf2 "buf2"
OpMemberName %buf2 0 "_GLF_uniform_uint_values"
OpName %_ ""
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_float_values"
OpName %__0 ""
OpName %_GLF_color "_GLF_color"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %__1 ""
OpDecorate %_arr_uint_uint_1 ArrayStride 16
OpMemberDecorate %buf2 0 Offset 0
OpDecorate %buf2 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 2
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 1
OpDecorate %_GLF_color Location 0
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %__1 DescriptorSet 0
OpDecorate %__1 Binding 0
%void = OpTypeVoid
%15 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%uint = OpTypeInt 32 0
%uint_100 = OpConstant %uint 100
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%buf2 = OpTypeStruct %_arr_uint_uint_1
%_ptr_Uniform_buf2 = OpTypePointer Uniform %buf2
%_ = OpVariable %_ptr_Uniform_buf2 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf1 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%__0 = OpVariable %_ptr_Uniform_buf1 Uniform
%_ptr_Uniform_float = OpTypePointer Uniform %float
%bool = OpTypeBool
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%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
%__1 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%main = OpFunction %void None %15
%34 = OpLabel
%f = OpVariable %_ptr_Function_float Function
%35 = OpAccessChain %_ptr_Uniform_uint %_ %int_0 %int_0
%36 = OpLoad %uint %35
%37 = OpExtInst %uint %1 UMax %uint_100 %36
%38 = OpBitcast %float %37
OpStore %f %38
%39 = OpLoad %float %f
%40 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_0
%41 = OpLoad %float %40
%42 = OpFOrdEqual %bool %39 %41
OpSelectionMerge %43 None
OpBranchConditional %42 %44 %45
%44 = OpLabel
%46 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%47 = OpLoad %int %46
%48 = OpConvertSToF %float %47
%49 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_1
%50 = OpLoad %int %49
%51 = OpConvertSToF %float %50
%52 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_1
%53 = OpLoad %int %52
%54 = OpConvertSToF %float %53
%55 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_0
%56 = OpLoad %int %55
%57 = OpConvertSToF %float %56
%58 = OpCompositeConstruct %v4float %48 %51 %54 %57
OpStore %_GLF_color %58
OpBranch %43
%45 = OpLabel
%59 = OpAccessChain %_ptr_Uniform_int %__1 %int_0 %int_1
%60 = OpLoad %int %59
%61 = OpConvertSToF %float %60
%62 = OpCompositeConstruct %v4float %61 %61 %61 %61
OpStore %_GLF_color %62
OpBranch %43
%43 = OpLabel
OpReturn
OpFunctionEnd