blob: ba548bc345cd0dfc3d6e00113a1797377d24dd37 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 92
; 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_trailing_bit "tint_first_trailing_bit"
OpName %v "v"
OpName %x "x"
OpName %firstTrailingBit_3a2acc "firstTrailingBit_3a2acc"
OpName %arg_0 "arg_0"
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
%bool = OpTypeBool
%uint_65535 = OpConstant %uint 65535
%uint_16 = OpConstant %uint 16
%uint_255 = OpConstant %uint 255
%uint_8 = OpConstant %uint 8
%uint_15 = OpConstant %uint 15
%uint_4 = OpConstant %uint 4
%uint_3 = OpConstant %uint 3
%uint_2 = OpConstant %uint 2
%uint_1 = OpConstant %uint 1
%uint_4294967295 = OpConstant %uint 4294967295
%void = OpTypeVoid
%67 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%74 = OpConstantNull %int
%78 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_first_trailing_bit = OpFunction %int None %9
%v = OpFunctionParameter %int
%13 = OpLabel
%x = OpVariable %_ptr_Function_uint Function %18
%14 = OpBitcast %uint %v
OpStore %x %14
%22 = OpLoad %uint %x
%24 = OpBitwiseAnd %uint %22 %uint_65535
%20 = OpINotEqual %bool %24 %18
%19 = OpSelect %uint %20 %18 %uint_16
%26 = OpLoad %uint %x
%27 = OpShiftRightLogical %uint %26 %19
OpStore %x %27
%30 = OpLoad %uint %x
%32 = OpBitwiseAnd %uint %30 %uint_255
%29 = OpINotEqual %bool %32 %18
%28 = OpSelect %uint %29 %18 %uint_8
%34 = OpLoad %uint %x
%35 = OpShiftRightLogical %uint %34 %28
OpStore %x %35
%38 = OpLoad %uint %x
%40 = OpBitwiseAnd %uint %38 %uint_15
%37 = OpINotEqual %bool %40 %18
%36 = OpSelect %uint %37 %18 %uint_4
%42 = OpLoad %uint %x
%43 = OpShiftRightLogical %uint %42 %36
OpStore %x %43
%46 = OpLoad %uint %x
%48 = OpBitwiseAnd %uint %46 %uint_3
%45 = OpINotEqual %bool %48 %18
%44 = OpSelect %uint %45 %18 %uint_2
%50 = OpLoad %uint %x
%51 = OpShiftRightLogical %uint %50 %44
OpStore %x %51
%54 = OpLoad %uint %x
%56 = OpBitwiseAnd %uint %54 %uint_1
%53 = OpINotEqual %bool %56 %18
%52 = OpSelect %uint %53 %18 %uint_1
%58 = OpLoad %uint %x
%59 = OpIEqual %bool %58 %18
%57 = OpSelect %uint %59 %uint_4294967295 %18
%62 = OpBitwiseOr %uint %19 %28
%63 = OpBitwiseOr %uint %62 %36
%64 = OpBitwiseOr %uint %63 %44
%65 = OpBitwiseOr %uint %64 %52
%66 = OpBitwiseOr %uint %65 %57
%61 = OpBitcast %int %66
OpReturnValue %61
OpFunctionEnd
%firstTrailingBit_3a2acc = OpFunction %void None %67
%70 = OpLabel
%arg_0 = OpVariable %_ptr_Function_int Function %74
%res = OpVariable %_ptr_Function_int Function %74
OpStore %arg_0 %int_1
%76 = OpLoad %int %arg_0
%75 = OpFunctionCall %int %tint_first_trailing_bit %76
OpStore %res %75
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %78
%80 = OpLabel
%81 = OpFunctionCall %void %firstTrailingBit_3a2acc
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %67
%83 = OpLabel
%84 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %84
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %67
%87 = OpLabel
%88 = OpFunctionCall %void %firstTrailingBit_3a2acc
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %67
%90 = OpLabel
%91 = OpFunctionCall %void %firstTrailingBit_3a2acc
OpReturn
OpFunctionEnd