blob: 71352d20d6c7e341d255cfc25285d627e454189e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 79
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol %tint_symbol_2
OpExecutionMode %main OriginUpperLeft
OpName %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_float_values"
OpName %x_6 "x_6"
OpName %x_GLF_color "x_GLF_color"
OpName %tint_symbol "tint_symbol"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %main_1 "main_1"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_3 "tint_symbol_3"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main "main"
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_float_uint_5 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 0
OpDecorate %tint_symbol BuiltIn FragCoord
OpDecorate %tint_symbol_2 Location 0
OpMemberDecorate %main_out 0 Offset 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%5 = OpConstantNull %v4float
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %5
%uint = OpTypeInt 32 0
%uint_5 = OpConstant %uint 5
%_arr_float_uint_5 = OpTypeArray %float %uint_5
%buf0 = OpTypeStruct %_arr_float_uint_5
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_6 = OpVariable %_ptr_Uniform_buf0 Uniform
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
%_ptr_Input_v4float = OpTypePointer Input %v4float
%tint_symbol = OpVariable %_ptr_Input_v4float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_2 = OpVariable %_ptr_Output_v4float Output %5
%void = OpTypeVoid
%17 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_float = OpTypePointer Private %float
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%bool = OpTypeBool
%int_2 = OpConstant %int 2
%uint_1 = OpConstant %uint 1
%int_4 = OpConstant %int 4
%int_3 = OpConstant %int 3
%int_1 = OpConstant %int 1
%float_10 = OpConstant %float 10
%mat4v4float = OpTypeMatrix %v4float 4
%float_0 = OpConstant %float 0
%main_out = OpTypeStruct %v4float
%66 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %17
%20 = OpLabel
%23 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
%24 = OpLoad %float %23
%28 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_0
%29 = OpLoad %float %28
%30 = OpFOrdGreaterThan %bool %24 %29
OpSelectionMerge %32 None
OpBranchConditional %30 %33 %32
%33 = OpLabel
%35 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_2
%36 = OpLoad %float %35
%37 = OpCompositeConstruct %v4float %36 %36 %36 %36
OpStore %x_GLF_color %37
%39 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_1
%40 = OpLoad %float %39
%41 = OpFOrdGreaterThan %bool %40 %29
OpSelectionMerge %42 None
OpBranchConditional %41 %43 %42
%43 = OpLabel
%45 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_4
%46 = OpLoad %float %45
%47 = OpCompositeConstruct %v4float %46 %46 %46 %46
OpStore %x_GLF_color %47
OpBranch %42
%42 = OpLabel
%49 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_3
%50 = OpLoad %float %49
%51 = OpCompositeConstruct %v4float %50 %50 %50 %50
OpStore %x_GLF_color %51
OpBranch %32
%32 = OpLabel
%53 = OpAccessChain %_ptr_Uniform_float %x_6 %uint_0 %int_1
%54 = OpLoad %float %53
%56 = OpCompositeConstruct %v4float %29 %54 %54 %float_10
OpStore %x_GLF_color %56
%57 = OpLoad %v4float %x_GLF_color
%60 = OpCompositeConstruct %v4float %29 %float_0 %float_0 %float_0
%61 = OpCompositeConstruct %v4float %float_0 %29 %float_0 %float_0
%62 = OpCompositeConstruct %v4float %float_0 %float_0 %29 %float_0
%63 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %29
%64 = OpCompositeConstruct %mat4v4float %60 %61 %62 %63
%65 = OpMatrixTimesVector %v4float %64 %57
OpStore %x_GLF_color %65
OpReturn
OpFunctionEnd
%tint_symbol_3 = OpFunction %void None %66
%tint_symbol_1 = OpFunctionParameter %main_out
%70 = OpLabel
%71 = OpCompositeExtract %v4float %tint_symbol_1 0
OpStore %tint_symbol_2 %71
OpReturn
OpFunctionEnd
%main = OpFunction %void None %17
%73 = OpLabel
%74 = OpLoad %v4float %tint_symbol
OpStore %gl_FragCoord %74
%75 = OpFunctionCall %void %main_1
%77 = OpLoad %v4float %x_GLF_color
%78 = OpCompositeConstruct %main_out %77
%76 = OpFunctionCall %void %tint_symbol_3 %78
OpReturn
OpFunctionEnd