blob: 8b2693b4edc9b37c6bdc6333e1a9f948e29745a6 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 86
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %tint_symbol_1
OpExecutionMode %main OriginUpperLeft
OpName %buf1 "buf1"
OpMemberName %buf1 0 "x_GLF_uniform_uint_values"
OpName %x_6 "x_6"
OpName %buf2 "buf2"
OpMemberName %buf2 0 "x_GLF_uniform_float_values"
OpName %x_8 "x_8"
OpName %x_GLF_color "x_GLF_color"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "x_GLF_uniform_int_values"
OpName %x_12 "x_12"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main_1 "main_1"
OpName %a "a"
OpName %b "b"
OpName %c "c"
OpName %main_out "main_out"
OpMemberName %main_out 0 "x_GLF_color_1"
OpName %tint_symbol_2 "tint_symbol_2"
OpName %tint_symbol "tint_symbol"
OpName %main "main"
OpDecorate %buf1 Block
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %_arr_uint_uint_2 ArrayStride 16
OpDecorate %x_6 NonWritable
OpDecorate %x_6 DescriptorSet 0
OpDecorate %x_6 Binding 1
OpDecorate %buf2 Block
OpMemberDecorate %buf2 0 Offset 0
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpDecorate %x_8 NonWritable
OpDecorate %x_8 DescriptorSet 0
OpDecorate %x_8 Binding 2
OpDecorate %buf0 Block
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpDecorate %x_12 NonWritable
OpDecorate %x_12 DescriptorSet 0
OpDecorate %x_12 Binding 0
OpDecorate %tint_symbol_1 Location 0
OpMemberDecorate %main_out 0 Offset 0
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_uint_uint_2 = OpTypeArray %uint %uint_2
%buf1 = OpTypeStruct %_arr_uint_uint_2
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%x_6 = OpVariable %_ptr_Uniform_buf1 Uniform
%float = OpTypeFloat 32
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf2 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf2 = OpTypePointer Uniform %buf2
%x_8 = OpVariable %_ptr_Uniform_buf2 Uniform
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%16 = OpConstantNull %v4float
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %16
%int = OpTypeInt 32 1
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%x_12 = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Output_v4float = OpTypePointer Output %v4float
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %16
%void = OpTypeVoid
%24 = OpTypeFunction %void
%_ptr_Function_uint = OpTypePointer Function %uint
%30 = OpConstantNull %uint
%_ptr_Function_float = OpTypePointer Function %float
%33 = OpConstantNull %float
%uint_0 = OpConstant %uint 0
%int_0 = OpConstant %int 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%_ptr_Uniform_float = OpTypePointer Uniform %float
%bool = OpTypeBool
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%main_out = OpTypeStruct %v4float
%74 = OpTypeFunction %void %main_out
%main_1 = OpFunction %void None %24
%27 = OpLabel
%a = OpVariable %_ptr_Function_uint Function %30
%b = OpVariable %_ptr_Function_float Function %33
%c = OpVariable %_ptr_Function_uint Function %30
%38 = OpAccessChain %_ptr_Uniform_uint %x_6 %uint_0 %int_0
%39 = OpLoad %uint %38
%41 = OpAccessChain %_ptr_Uniform_float %x_8 %uint_0 %int_0
%42 = OpLoad %float %41
%43 = OpConvertFToU %uint %42
%44 = OpShiftRightLogical %uint %39 %43
OpStore %a %44
%45 = OpLoad %uint %a
%46 = OpBitcast %float %45
OpStore %b %46
%47 = OpLoad %float %b
%48 = OpBitcast %uint %47
OpStore %c %48
%49 = OpLoad %uint %c
%50 = OpAccessChain %_ptr_Uniform_uint %x_6 %uint_0 %int_0
%51 = OpLoad %uint %50
%52 = OpIEqual %bool %49 %51
OpSelectionMerge %54 None
OpBranchConditional %52 %55 %56
%55 = OpLabel
%58 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_0
%59 = OpLoad %int %58
%61 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_1
%62 = OpLoad %int %61
%63 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_1
%64 = OpLoad %int %63
%65 = OpAccessChain %_ptr_Uniform_int %x_12 %uint_0 %int_0
%66 = OpLoad %int %65
%67 = OpConvertSToF %float %59
%68 = OpConvertSToF %float %62
%69 = OpConvertSToF %float %64
%70 = OpConvertSToF %float %66
%71 = OpCompositeConstruct %v4float %67 %68 %69 %70
OpStore %x_GLF_color %71
OpBranch %54
%56 = OpLabel
%72 = OpLoad %float %b
%73 = OpCompositeConstruct %v4float %72 %72 %72 %72
OpStore %x_GLF_color %73
OpBranch %54
%54 = OpLabel
OpReturn
OpFunctionEnd
%tint_symbol_2 = OpFunction %void None %74
%tint_symbol = OpFunctionParameter %main_out
%78 = OpLabel
%79 = OpCompositeExtract %v4float %tint_symbol 0
OpStore %tint_symbol_1 %79
OpReturn
OpFunctionEnd
%main = OpFunction %void None %24
%81 = OpLabel
%82 = OpFunctionCall %void %main_1
%84 = OpLoad %v4float %x_GLF_color
%85 = OpCompositeConstruct %main_out %84
%83 = OpFunctionCall %void %tint_symbol_2 %85
OpReturn
OpFunctionEnd