blob: cbd0178c70fe33f5237cbd2d3061f17f5de1dd8d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 64
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
OpExecutionMode %main OriginUpperLeft
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
OpName %x_GLF_color "x_GLF_color"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
OpName %x_6 "x_6"
OpName %main_1 "main_1"
OpName %f "f"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %main_inner "main_inner"
OpName %main "main"
OpDecorate %x_GLF_color_1_1 Location 0
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Private_v4float = OpTypePointer Private %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%int = OpTypeInt 32 1
%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
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%void = OpTypeVoid
%15 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%21 = OpConstantNull %float
%float_142_699997 = OpConstant %float 142.699997
%float_100 = OpConstant %float 100
%bool = OpTypeBool
%uint_0 = OpConstant %uint 0
%int_1 = OpConstant %int 1
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_0 = OpConstant %int 0
%main_out = OpTypeStruct %v4float
%53 = OpTypeFunction %main_out
%main_1 = OpFunction %void None %15
%18 = OpLabel
%f = OpVariable %_ptr_Function_float Function %21
OpStore %f %float_142_699997
%23 = OpLoad %float %f
%25 = OpConvertFToS %int %23
%24 = OpConvertSToF %float %25
%27 = OpFOrdGreaterThan %bool %24 %float_100
OpSelectionMerge %29 None
OpBranchConditional %27 %30 %31
%30 = OpLabel
%35 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%36 = OpLoad %int %35
%38 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%39 = OpLoad %int %38
%40 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%41 = OpLoad %int %40
%42 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_1
%43 = OpLoad %int %42
%44 = OpConvertSToF %float %36
%45 = OpConvertSToF %float %39
%46 = OpConvertSToF %float %41
%47 = OpConvertSToF %float %43
%48 = OpCompositeConstruct %v4float %44 %45 %46 %47
OpStore %x_GLF_color %48
OpBranch %29
%31 = OpLabel
%49 = OpAccessChain %_ptr_Uniform_int %x_6 %uint_0 %int_0
%50 = OpLoad %int %49
%51 = OpConvertSToF %float %50
%52 = OpCompositeConstruct %v4float %51 %51 %51 %51
OpStore %x_GLF_color %52
OpBranch %29
%29 = OpLabel
OpReturn
OpFunctionEnd
%main_inner = OpFunction %main_out None %53
%56 = OpLabel
%57 = OpFunctionCall %void %main_1
%58 = OpLoad %v4float %x_GLF_color
%59 = OpCompositeConstruct %main_out %58
OpReturnValue %59
OpFunctionEnd
%main = OpFunction %void None %15
%61 = OpLabel
%62 = OpFunctionCall %main_out %main_inner
%63 = OpCompositeExtract %v4float %62 0
OpStore %x_GLF_color_1_1 %63
OpReturn
OpFunctionEnd