blob: 48d5c97b373d2bb32e843c444dc502ee1776a80f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 99
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %tint_count_leading_zeros "tint_count_leading_zeros"
OpName %v "v"
OpName %x "x"
OpName %countLeadingZeros_858d40 "countLeadingZeros_858d40"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%9 = OpTypeFunction %v2int %v2int
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%20 = OpConstantNull %v2uint
%uint_65535 = OpConstant %uint 65535
%24 = OpConstantComposite %v2uint %uint_65535 %uint_65535
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%uint_16 = OpConstant %uint 16
%29 = OpConstantComposite %v2uint %uint_16 %uint_16
%uint_0 = OpConstant %uint 0
%31 = OpConstantComposite %v2uint %uint_0 %uint_0
%uint_16777215 = OpConstant %uint 16777215
%37 = OpConstantComposite %v2uint %uint_16777215 %uint_16777215
%uint_8 = OpConstant %uint 8
%40 = OpConstantComposite %v2uint %uint_8 %uint_8
%uint_268435455 = OpConstant %uint 268435455
%46 = OpConstantComposite %v2uint %uint_268435455 %uint_268435455
%uint_4 = OpConstant %uint 4
%49 = OpConstantComposite %v2uint %uint_4 %uint_4
%uint_1073741823 = OpConstant %uint 1073741823
%55 = OpConstantComposite %v2uint %uint_1073741823 %uint_1073741823
%uint_2 = OpConstant %uint 2
%58 = OpConstantComposite %v2uint %uint_2 %uint_2
%uint_2147483647 = OpConstant %uint 2147483647
%64 = OpConstantComposite %v2uint %uint_2147483647 %uint_2147483647
%uint_1 = OpConstant %uint 1
%67 = OpConstantComposite %v2uint %uint_1 %uint_1
%void = OpTypeVoid
%77 = OpTypeFunction %void
%82 = OpConstantNull %v2int
%_ptr_Function_v2int = OpTypePointer Function %v2int
%85 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_count_leading_zeros = OpFunction %v2int None %9
%v = OpFunctionParameter %v2int
%14 = OpLabel
%x = OpVariable %_ptr_Function_v2uint Function %20
%15 = OpBitcast %v2uint %v
OpStore %x %15
%22 = OpLoad %v2uint %x
%25 = OpULessThanEqual %v2bool %22 %24
%21 = OpSelect %v2uint %25 %29 %31
%32 = OpLoad %v2uint %x
%33 = OpShiftLeftLogical %v2uint %32 %21
OpStore %x %33
%35 = OpLoad %v2uint %x
%38 = OpULessThanEqual %v2bool %35 %37
%34 = OpSelect %v2uint %38 %40 %31
%41 = OpLoad %v2uint %x
%42 = OpShiftLeftLogical %v2uint %41 %34
OpStore %x %42
%44 = OpLoad %v2uint %x
%47 = OpULessThanEqual %v2bool %44 %46
%43 = OpSelect %v2uint %47 %49 %31
%50 = OpLoad %v2uint %x
%51 = OpShiftLeftLogical %v2uint %50 %43
OpStore %x %51
%53 = OpLoad %v2uint %x
%56 = OpULessThanEqual %v2bool %53 %55
%52 = OpSelect %v2uint %56 %58 %31
%59 = OpLoad %v2uint %x
%60 = OpShiftLeftLogical %v2uint %59 %52
OpStore %x %60
%62 = OpLoad %v2uint %x
%65 = OpULessThanEqual %v2bool %62 %64
%61 = OpSelect %v2uint %65 %67 %31
%69 = OpLoad %v2uint %x
%70 = OpIEqual %v2bool %69 %31
%68 = OpSelect %v2uint %70 %67 %31
%72 = OpBitwiseOr %v2uint %21 %34
%73 = OpBitwiseOr %v2uint %72 %43
%74 = OpBitwiseOr %v2uint %73 %52
%75 = OpBitwiseOr %v2uint %74 %61
%76 = OpIAdd %v2uint %75 %68
%71 = OpBitcast %v2int %76
OpReturnValue %71
OpFunctionEnd
%countLeadingZeros_858d40 = OpFunction %void None %77
%80 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %82
%81 = OpFunctionCall %v2int %tint_count_leading_zeros %82
OpStore %res %81
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %85
%87 = OpLabel
%88 = OpFunctionCall %void %countLeadingZeros_858d40
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %77
%90 = OpLabel
%91 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %91
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %77
%94 = OpLabel
%95 = OpFunctionCall %void %countLeadingZeros_858d40
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %77
%97 = OpLabel
%98 = OpFunctionCall %void %countLeadingZeros_858d40
OpReturn
OpFunctionEnd