blob: bea47c79ed99e10adb994535bba395a773410e17 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 96
; 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_first_leading_bit "tint_first_leading_bit"
OpName %v "v"
OpName %x "x"
OpName %firstLeadingBit_57a1a3 "firstLeadingBit_57a1a3"
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
%int_0 = OpConstant %int 0
%bool = OpTypeBool
%_ptr_Function_uint = OpTypePointer Function %uint
%24 = OpConstantNull %uint
%uint_4294901760 = OpConstant %uint 4294901760
%uint_16 = OpConstant %uint 16
%uint_0 = OpConstant %uint 0
%uint_65280 = OpConstant %uint 65280
%uint_8 = OpConstant %uint 8
%uint_240 = OpConstant %uint 240
%uint_4 = OpConstant %uint 4
%uint_12 = OpConstant %uint 12
%uint_2 = OpConstant %uint 2
%uint_1 = OpConstant %uint 1
%uint_4294967295 = OpConstant %uint 4294967295
%void = OpTypeVoid
%73 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%81 = OpConstantNull %int
%82 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_first_leading_bit = OpFunction %int None %9
%v = OpFunctionParameter %int
%13 = OpLabel
%x = OpVariable %_ptr_Function_uint Function %24
%17 = OpSLessThan %bool %v %int_0
%20 = OpNot %int %v
%19 = OpBitcast %uint %20
%21 = OpBitcast %uint %v
%14 = OpSelect %uint %17 %19 %21
OpStore %x %14
%27 = OpLoad %uint %x
%29 = OpBitwiseAnd %uint %27 %uint_4294901760
%26 = OpINotEqual %bool %29 %24
%25 = OpSelect %uint %26 %uint_16 %uint_0
%32 = OpLoad %uint %x
%33 = OpShiftRightLogical %uint %32 %25
OpStore %x %33
%36 = OpLoad %uint %x
%38 = OpBitwiseAnd %uint %36 %uint_65280
%35 = OpINotEqual %bool %38 %24
%34 = OpSelect %uint %35 %uint_8 %uint_0
%40 = OpLoad %uint %x
%41 = OpShiftRightLogical %uint %40 %34
OpStore %x %41
%44 = OpLoad %uint %x
%46 = OpBitwiseAnd %uint %44 %uint_240
%43 = OpINotEqual %bool %46 %24
%42 = OpSelect %uint %43 %uint_4 %uint_0
%48 = OpLoad %uint %x
%49 = OpShiftRightLogical %uint %48 %42
OpStore %x %49
%52 = OpLoad %uint %x
%54 = OpBitwiseAnd %uint %52 %uint_12
%51 = OpINotEqual %bool %54 %24
%50 = OpSelect %uint %51 %uint_2 %uint_0
%56 = OpLoad %uint %x
%57 = OpShiftRightLogical %uint %56 %50
OpStore %x %57
%60 = OpLoad %uint %x
%61 = OpBitwiseAnd %uint %60 %uint_2
%59 = OpINotEqual %bool %61 %24
%58 = OpSelect %uint %59 %uint_1 %uint_0
%64 = OpLoad %uint %x
%65 = OpIEqual %bool %64 %uint_0
%63 = OpSelect %uint %65 %uint_4294967295 %uint_0
%68 = OpBitwiseOr %uint %25 %34
%69 = OpBitwiseOr %uint %68 %42
%70 = OpBitwiseOr %uint %69 %50
%71 = OpBitwiseOr %uint %70 %58
%72 = OpBitwiseOr %uint %71 %63
%67 = OpBitcast %int %72
OpReturnValue %67
OpFunctionEnd
%firstLeadingBit_57a1a3 = OpFunction %void None %73
%76 = OpLabel
%res = OpVariable %_ptr_Function_int Function %81
%77 = OpFunctionCall %int %tint_first_leading_bit %int_1
OpStore %res %77
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %82
%84 = OpLabel
%85 = OpFunctionCall %void %firstLeadingBit_57a1a3
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %73
%87 = OpLabel
%88 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %88
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %73
%91 = OpLabel
%92 = OpFunctionCall %void %firstLeadingBit_57a1a3
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %73
%94 = OpLabel
%95 = OpFunctionCall %void %firstLeadingBit_57a1a3
OpReturn
OpFunctionEnd