blob: f5adcab4464fa922f4e6f02946ecee6a89fef0ca [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 90
; 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_trailing_zeros "tint_count_trailing_zeros"
OpName %v "v"
OpName %x "x"
OpName %countTrailingZeros_42fed6 "countTrailingZeros_42fed6"
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_0 = OpConstant %uint 0
%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
%void = OpTypeVoid
%67 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%75 = OpConstantNull %int
%76 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_count_trailing_zeros = 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 %uint_0 %uint_16
%27 = OpLoad %uint %x
%28 = OpShiftRightLogical %uint %27 %19
OpStore %x %28
%31 = OpLoad %uint %x
%33 = OpBitwiseAnd %uint %31 %uint_255
%30 = OpINotEqual %bool %33 %18
%29 = OpSelect %uint %30 %uint_0 %uint_8
%35 = OpLoad %uint %x
%36 = OpShiftRightLogical %uint %35 %29
OpStore %x %36
%39 = OpLoad %uint %x
%41 = OpBitwiseAnd %uint %39 %uint_15
%38 = OpINotEqual %bool %41 %18
%37 = OpSelect %uint %38 %uint_0 %uint_4
%43 = OpLoad %uint %x
%44 = OpShiftRightLogical %uint %43 %37
OpStore %x %44
%47 = OpLoad %uint %x
%49 = OpBitwiseAnd %uint %47 %uint_3
%46 = OpINotEqual %bool %49 %18
%45 = OpSelect %uint %46 %uint_0 %uint_2
%51 = OpLoad %uint %x
%52 = OpShiftRightLogical %uint %51 %45
OpStore %x %52
%55 = OpLoad %uint %x
%57 = OpBitwiseAnd %uint %55 %uint_1
%54 = OpINotEqual %bool %57 %18
%53 = OpSelect %uint %54 %uint_0 %uint_1
%59 = OpLoad %uint %x
%60 = OpIEqual %bool %59 %uint_0
%58 = OpSelect %uint %60 %uint_1 %uint_0
%62 = OpBitwiseOr %uint %19 %29
%63 = OpBitwiseOr %uint %62 %37
%64 = OpBitwiseOr %uint %63 %45
%65 = OpBitwiseOr %uint %64 %53
%66 = OpIAdd %uint %65 %58
%61 = OpBitcast %int %66
OpReturnValue %61
OpFunctionEnd
%countTrailingZeros_42fed6 = OpFunction %void None %67
%70 = OpLabel
%res = OpVariable %_ptr_Function_int Function %75
%71 = OpFunctionCall %int %tint_count_trailing_zeros %int_1
OpStore %res %71
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %76
%78 = OpLabel
%79 = OpFunctionCall %void %countTrailingZeros_42fed6
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %67
%81 = OpLabel
%82 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %82
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %67
%85 = OpLabel
%86 = OpFunctionCall %void %countTrailingZeros_42fed6
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %67
%88 = OpLabel
%89 = OpFunctionCall %void %countTrailingZeros_42fed6
OpReturn
OpFunctionEnd