blob: b0b7cb6c383476c3ad1f0991839a1f9240804a08 [file] [log] [blame]
/*
* Copyright 2024 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef skgpu_graphite_InternalDrawTypeFlags_DEFINED
#define skgpu_graphite_InternalDrawTypeFlags_DEFINED
#include "include/gpu/graphite/GraphiteTypes.h"
namespace skgpu::graphite {
/*
* This enum extends the DrawTypeFlags enum to include 'drawTypes' that are only needed internal
* to Graphite.
*/
enum InternalDrawTypeFlags : uint16_t {
kCoverageMask = DrawTypeFlags::kLast << 1,
kAnalyticRRect = DrawTypeFlags::kLast << 2,
kLastInternal = kAnalyticRRect,
};
static_assert(kLastInternal <= (1 << 15), "DrawTypeFlags do not fit in 16 bits");
} // namespace skgpu::graphite
#endif // skgpu_graphite_InternalDrawTypeFlags_DEFINED