blob: 4e73e3f0a9037248b12f9e940f4178bf9ca67efa [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 85
; 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_6d4656 "countLeadingZeros_6d4656"
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
%9 = OpTypeFunction %int %int
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%18 = OpConstantNull %uint
%uint_65535 = OpConstant %uint 65535
%bool = OpTypeBool
%uint_16 = OpConstant %uint 16
%uint_16777215 = OpConstant %uint 16777215
%uint_8 = OpConstant %uint 8
%uint_268435455 = OpConstant %uint 268435455
%uint_4 = OpConstant %uint 4
%uint_1073741823 = OpConstant %uint 1073741823
%uint_2 = OpConstant %uint 2
%uint_2147483647 = OpConstant %uint 2147483647
%uint_1 = OpConstant %uint 1
%void = OpTypeVoid
%62 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%70 = OpConstantNull %int
%71 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_count_leading_zeros = OpFunction %int None %9
%v = OpFunctionParameter %int
%13 = OpLabel
%x = OpVariable %_ptr_Function_uint Function %18
%14 = OpBitcast %uint %v
OpStore %x %14
%20 = OpLoad %uint %x
%22 = OpULessThanEqual %bool %20 %uint_65535
%19 = OpSelect %uint %22 %uint_16 %18
%25 = OpLoad %uint %x
%26 = OpShiftLeftLogical %uint %25 %19
OpStore %x %26
%28 = OpLoad %uint %x
%30 = OpULessThanEqual %bool %28 %uint_16777215
%27 = OpSelect %uint %30 %uint_8 %18
%32 = OpLoad %uint %x
%33 = OpShiftLeftLogical %uint %32 %27
OpStore %x %33
%35 = OpLoad %uint %x
%37 = OpULessThanEqual %bool %35 %uint_268435455
%34 = OpSelect %uint %37 %uint_4 %18
%39 = OpLoad %uint %x
%40 = OpShiftLeftLogical %uint %39 %34
OpStore %x %40
%42 = OpLoad %uint %x
%44 = OpULessThanEqual %bool %42 %uint_1073741823
%41 = OpSelect %uint %44 %uint_2 %18
%46 = OpLoad %uint %x
%47 = OpShiftLeftLogical %uint %46 %41
OpStore %x %47
%49 = OpLoad %uint %x
%51 = OpULessThanEqual %bool %49 %uint_2147483647
%48 = OpSelect %uint %51 %uint_1 %18
%54 = OpLoad %uint %x
%55 = OpIEqual %bool %54 %18
%53 = OpSelect %uint %55 %uint_1 %18
%57 = OpBitwiseOr %uint %19 %27
%58 = OpBitwiseOr %uint %57 %34
%59 = OpBitwiseOr %uint %58 %41
%60 = OpBitwiseOr %uint %59 %48
%61 = OpIAdd %uint %60 %53
%56 = OpBitcast %int %61
OpReturnValue %56
OpFunctionEnd
%countLeadingZeros_6d4656 = OpFunction %void None %62
%65 = OpLabel
%res = OpVariable %_ptr_Function_int Function %70
%66 = OpFunctionCall %int %tint_count_leading_zeros %int_1
OpStore %res %66
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %71
%73 = OpLabel
%74 = OpFunctionCall %void %countLeadingZeros_6d4656
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %62
%76 = OpLabel
%77 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %77
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %62
%80 = OpLabel
%81 = OpFunctionCall %void %countLeadingZeros_6d4656
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %62
%83 = OpLabel
%84 = OpFunctionCall %void %countLeadingZeros_6d4656
OpReturn
OpFunctionEnd