2021-07-23 13:10:12 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-07-26 17:34:58 +00:00
|
|
|
; Bound: 44
|
2021-07-23 13:10:12 +00:00
|
|
|
; 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 %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 %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
|
|
|
|
%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
|
|
|
|
%11 = OpTypeFunction %void
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Private_float = OpTypePointer Private %float
|
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%true = OpConstantTrue %bool
|
|
|
|
%float_1 = OpConstant %float 1
|
2021-07-26 17:34:58 +00:00
|
|
|
%29 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
|
|
|
%30 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
2021-07-23 13:10:12 +00:00
|
|
|
%main_out = OpTypeStruct %v4float
|
2021-07-26 17:34:58 +00:00
|
|
|
%31 = OpTypeFunction %void %main_out
|
2021-07-23 13:10:12 +00:00
|
|
|
%main_1 = OpFunction %void None %11
|
|
|
|
%14 = OpLabel
|
|
|
|
%18 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
|
|
|
|
%19 = OpLoad %float %18
|
|
|
|
%21 = OpFOrdLessThan %bool %19 %float_0
|
2021-07-26 17:34:58 +00:00
|
|
|
%24 = OpLogicalOr %bool %21 %true
|
|
|
|
OpSelectionMerge %25 None
|
|
|
|
OpBranchConditional %24 %26 %27
|
|
|
|
%26 = OpLabel
|
|
|
|
OpStore %x_GLF_color %29
|
|
|
|
OpBranch %25
|
2021-07-23 13:10:12 +00:00
|
|
|
%27 = OpLabel
|
2021-07-26 17:34:58 +00:00
|
|
|
OpStore %x_GLF_color %30
|
|
|
|
OpBranch %25
|
|
|
|
%25 = OpLabel
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-07-26 17:34:58 +00:00
|
|
|
%tint_symbol_3 = OpFunction %void None %31
|
2021-07-23 13:10:12 +00:00
|
|
|
%tint_symbol_1 = OpFunctionParameter %main_out
|
2021-07-26 17:34:58 +00:00
|
|
|
%35 = OpLabel
|
|
|
|
%36 = OpCompositeExtract %v4float %tint_symbol_1 0
|
|
|
|
OpStore %tint_symbol_2 %36
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %11
|
2021-07-26 17:34:58 +00:00
|
|
|
%38 = OpLabel
|
|
|
|
%39 = OpLoad %v4float %tint_symbol
|
|
|
|
OpStore %gl_FragCoord %39
|
|
|
|
%40 = OpFunctionCall %void %main_1
|
|
|
|
%42 = OpLoad %v4float %x_GLF_color
|
|
|
|
%43 = OpCompositeConstruct %main_out %42
|
|
|
|
%41 = OpFunctionCall %void %tint_symbol_3 %43
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|