17 constexpr uint16_t kRectIndicies[4] = {0, 1, 2, 3};
18 auto& host_buffer = renderer.GetTransientsBuffer();
23 .vertex_buffer = host_buffer.Emplace(
26 8 *
sizeof(
float),
alignof(
float)),
27 .index_buffer = host_buffer.Emplace(
28 kRectIndicies, 4 *
sizeof(uint16_t),
alignof(uint16_t)),
41 const Rect& rect)
const {
bool CanApplyMaskFilter() const override
GeometryResult GetPositionBuffer(const ContentContext &renderer, const Entity &entity, RenderPass &pass) const override
std::optional< Rect > GetCoverage(const Matrix &transform) const override
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
Matrix GetShaderTransform(const RenderPass &pass) const
Get the vertex shader transform used for drawing this Entity.
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
Render passes encode render commands directed as one specific render target into an underlying comman...
ISize GetRenderTargetSize() const
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
A 4x4 matrix using column-major storage.
static constexpr TRect MakeSize(const TSize< U > &size)
static constexpr TRect MakeMaximum()