2021-07-23 13:10:12 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2021-08-05 17:34:19 +00:00
|
|
|
; Bound: 65
|
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" %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 %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 %buf0 "buf0"
|
|
|
|
OpMemberName %buf0 0 "zero"
|
|
|
|
OpName %x_5 "x_5"
|
|
|
|
OpName %main_1 "main_1"
|
|
|
|
OpName %x_9 "x_9"
|
|
|
|
OpName %x_10_phi "x_10_phi"
|
|
|
|
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"
|
2021-07-23 13:10:12 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %x_GLF_color_1_1 Location 0
|
2021-07-23 13:10:12 +00:00
|
|
|
OpDecorate %buf0 Block
|
|
|
|
OpMemberDecorate %buf0 0 Offset 0
|
|
|
|
OpDecorate %x_5 NonWritable
|
|
|
|
OpDecorate %x_5 DescriptorSet 0
|
|
|
|
OpDecorate %x_5 Binding 0
|
|
|
|
OpDecorate %_arr_int_uint_1 ArrayStride 4
|
|
|
|
OpMemberDecorate %main_out 0 Offset 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
2021-07-23 13:10:12 +00:00
|
|
|
%5 = OpConstantNull %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
|
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
2021-07-23 13:10:12 +00:00
|
|
|
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%buf0 = OpTypeStruct %int
|
|
|
|
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
|
|
|
%x_5 = OpVariable %_ptr_Uniform_buf0 Uniform
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%12 = OpTypeFunction %void
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_arr_int_uint_1 = OpTypeArray %int %uint_1
|
|
|
|
%_ptr_Function__arr_int_uint_1 = OpTypePointer Function %_arr_int_uint_1
|
|
|
|
%21 = OpConstantNull %_arr_int_uint_1
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
|
|
|
%24 = OpConstantNull %int
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%33 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
|
|
|
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%int_2 = OpConstant %int 2
|
|
|
|
%float_1 = OpConstant %float 1
|
2021-07-26 17:34:58 +00:00
|
|
|
%53 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
2021-07-23 13:10:12 +00:00
|
|
|
%main_out = OpTypeStruct %v4float
|
2021-08-05 17:34:19 +00:00
|
|
|
%54 = OpTypeFunction %main_out
|
2021-07-23 13:10:12 +00:00
|
|
|
%main_1 = OpFunction %void None %12
|
|
|
|
%15 = OpLabel
|
|
|
|
%x_9 = OpVariable %_ptr_Function__arr_int_uint_1 Function %21
|
|
|
|
%x_10_phi = OpVariable %_ptr_Function_int Function %24
|
|
|
|
%25 = OpLoad %_arr_int_uint_1 %x_9
|
|
|
|
%27 = OpCompositeExtract %int %25 0
|
|
|
|
OpBranch %28
|
|
|
|
%28 = OpLabel
|
|
|
|
OpLoopMerge %29 %30 None
|
|
|
|
OpBranch %31
|
|
|
|
%31 = OpLabel
|
|
|
|
OpStore %x_GLF_color %33
|
|
|
|
%35 = OpAccessChain %_ptr_Uniform_int %x_5 %uint_0
|
|
|
|
%36 = OpLoad %int %35
|
|
|
|
%37 = OpAccessChain %_ptr_Function_int %x_9 %36
|
|
|
|
%38 = OpLoad %int %37
|
|
|
|
%39 = OpIEqual %bool %38 %27
|
|
|
|
OpSelectionMerge %41 None
|
|
|
|
OpBranchConditional %39 %42 %41
|
|
|
|
%42 = OpLabel
|
|
|
|
OpStore %x_10_phi %int_1
|
|
|
|
OpBranch %29
|
|
|
|
%41 = OpLabel
|
|
|
|
OpStore %x_10_phi %int_2
|
|
|
|
OpBranch %29
|
|
|
|
%30 = OpLabel
|
|
|
|
OpBranch %28
|
|
|
|
%29 = OpLabel
|
|
|
|
%45 = OpLoad %int %x_10_phi
|
|
|
|
%46 = OpIEqual %bool %45 %int_1
|
2021-07-26 17:34:58 +00:00
|
|
|
%47 = OpIEqual %bool %45 %int_2
|
|
|
|
%48 = OpLogicalOr %bool %46 %47
|
|
|
|
OpSelectionMerge %49 None
|
|
|
|
OpBranchConditional %48 %50 %51
|
|
|
|
%50 = OpLabel
|
|
|
|
OpStore %x_GLF_color %53
|
|
|
|
OpBranch %49
|
2021-07-23 13:10:12 +00:00
|
|
|
%51 = OpLabel
|
2021-07-26 17:34:58 +00:00
|
|
|
OpStore %x_GLF_color %33
|
|
|
|
OpBranch %49
|
|
|
|
%49 = OpLabel
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-08-05 17:34:19 +00:00
|
|
|
%main_inner = OpFunction %main_out None %54
|
|
|
|
%57 = OpLabel
|
|
|
|
%58 = OpFunctionCall %void %main_1
|
|
|
|
%59 = OpLoad %v4float %x_GLF_color
|
|
|
|
%60 = OpCompositeConstruct %main_out %59
|
|
|
|
OpReturnValue %60
|
2021-07-23 13:10:12 +00:00
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %12
|
2021-08-05 17:34:19 +00:00
|
|
|
%62 = OpLabel
|
|
|
|
%63 = OpFunctionCall %main_out %main_inner
|
|
|
|
%64 = OpCompositeExtract %v4float %63 0
|
|
|
|
OpStore %x_GLF_color_1_1 %64
|
2021-07-23 13:10:12 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|