13TextureFilterInput::TextureFilterInput(std::shared_ptr<Texture>
texture,
15 : texture_(
std::move(
texture)), local_transform_(local_transform) {}
17TextureFilterInput::~TextureFilterInput() =
default;
23std::optional<Snapshot> TextureFilterInput::GetSnapshot(
24 const std::string& label,
27 std::optional<Rect> coverage_limit,
28 int32_t mip_count)
const {
31 if (texture_->GetMipCount() > 1) {
32 snapshot.sampler_descriptor.label =
"TextureFilterInput Trilinear Sampler";
38std::optional<Rect> TextureFilterInput::GetCoverage(
39 const Entity& entity)
const {
40 return Rect::MakeSize(texture_->GetSize())
41 .TransformBounds(GetTransform(entity));
44Matrix TextureFilterInput::GetLocalTransform(
const Entity& entity)
const {
45 return local_transform_;
static constexpr skcms_TransferFunction kLinear
SK_API sk_sp< PrecompileColorFilter > Matrix()
A 4x4 matrix using column-major storage.
Represents a texture and its intended draw transform/sampler configuration.
std::shared_ptr< Texture > texture