2021-07-23 13:10:12 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-07-27 15:12:27 +00:00
|
|
|
; Bound: 50
|
2021-07-23 13:10:12 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint Fragment %main "main" %gl_FragCoord_param_1 %x_GLF_color_1_1
|
2021-07-23 13:10:12 +00:00
|
|
|
OpExecutionMode %main OriginUpperLeft
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %gl_FragCoord_param_1 "gl_FragCoord_param_1"
|
|
|
|
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
|
2021-07-23 13:10:12 +00:00
|
|
|
OpName %x_GLF_color "x_GLF_color"
|
|
|
|
OpName %gl_FragCoord "gl_FragCoord"
|
|
|
|
OpName %main_1 "main_1"
|
|
|
|
OpName %main_out "main_out"
|
|
|
|
OpMemberName %main_out 0 "x_GLF_color_1"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %gl_FragCoord_param "gl_FragCoord_param"
|
2021-07-23 13:10:12 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %gl_FragCoord_param_1 BuiltIn FragCoord
|
|
|
|
OpDecorate %x_GLF_color_1_1 Location 0
|
2021-07-23 13:10:12 +00:00
|
|
|
OpMemberDecorate %main_out 0 Offset 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%gl_FragCoord_param_1 = OpVariable %_ptr_Input_v4float Input
|
2021-07-23 13:10:12 +00:00
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%7 = OpConstantNull %v4float
|
|
|
|
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %7
|
|
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
|
|
|
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %7
|
|
|
|
%gl_FragCoord = OpVariable %_ptr_Private_v4float Private %7
|
2021-07-23 13:10:12 +00:00
|
|
|
%void = OpTypeVoid
|
|
|
|
%11 = OpTypeFunction %void
|
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%17 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%true = OpConstantTrue %bool
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_Private_float = OpTypePointer Private %float
|
|
|
|
%main_out = OpTypeStruct %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%37 = OpTypeFunction %main_out %v4float
|
2021-07-23 13:10:12 +00:00
|
|
|
%main_1 = OpFunction %void None %11
|
|
|
|
%14 = OpLabel
|
|
|
|
OpStore %x_GLF_color %17
|
|
|
|
OpSelectionMerge %20 None
|
|
|
|
OpBranchConditional %true %21 %20
|
|
|
|
%21 = OpLabel
|
|
|
|
%25 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
|
|
|
|
%26 = OpLoad %float %25
|
|
|
|
%27 = OpFOrdLessThan %bool %26 %float_0
|
|
|
|
OpSelectionMerge %28 None
|
|
|
|
OpBranchConditional %27 %29 %28
|
|
|
|
%29 = OpLabel
|
|
|
|
OpBranch %30
|
|
|
|
%30 = OpLabel
|
|
|
|
OpLoopMerge %31 %32 None
|
|
|
|
OpBranch %33
|
|
|
|
%33 = OpLabel
|
|
|
|
OpStore %x_GLF_color %17
|
|
|
|
OpBranch %32
|
|
|
|
%32 = OpLabel
|
|
|
|
%34 = OpAccessChain %_ptr_Private_float %gl_FragCoord %uint_0
|
|
|
|
%35 = OpLoad %float %34
|
|
|
|
%36 = OpFOrdLessThan %bool %35 %float_0
|
2021-07-27 15:12:27 +00:00
|
|
|
OpBranchConditional %36 %30 %31
|
2021-07-23 13:10:12 +00:00
|
|
|
%31 = OpLabel
|
|
|
|
OpBranch %28
|
|
|
|
%28 = OpLabel
|
|
|
|
OpBranch %20
|
|
|
|
%20 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main_inner = OpFunction %main_out None %37
|
|
|
|
%gl_FragCoord_param = OpFunctionParameter %v4float
|
2021-07-27 15:12:27 +00:00
|
|
|
%41 = OpLabel
|
2021-08-05 17:34:19 +00:00
|
|
|
OpStore %gl_FragCoord %gl_FragCoord_param
|
|
|
|
%42 = OpFunctionCall %void %main_1
|
|
|
|
%43 = OpLoad %v4float %x_GLF_color
|
|
|
|
%44 = OpCompositeConstruct %main_out %43
|
|
|
|
OpReturnValue %44
|
2021-07-23 13:10:12 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %11
|
2021-08-05 17:34:19 +00:00
|
|
|
%46 = OpLabel
|
|
|
|
%48 = OpLoad %v4float %gl_FragCoord_param_1
|
|
|
|
%47 = OpFunctionCall %main_out %main_inner %48
|
|
|
|
%49 = OpCompositeExtract %v4float %47 0
|
|
|
|
OpStore %x_GLF_color_1_1 %49
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|