 |
Flutter Impeller
|
|
Go to the documentation of this file.
13 TextureFilterInput::TextureFilterInput(std::shared_ptr<Texture> texture,
14 Matrix local_transform)
15 : texture_(
std::move(texture)), local_transform_(local_transform) {}
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";
39 const Entity& entity)
const {
45 return local_transform_;
Matrix GetLocalTransform(const Entity &entity) const override
Get the local transform of this filter input. This transform is relative to the Entity transform spac...
constexpr TRect TransformBounds(const Matrix &transform) const
Creates a new bounding box that contains this transformed rectangle.
Variant GetInput() const override
std::optional< Snapshot > GetSnapshot(const std::string &label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count) const override
Represents a texture and its intended draw transform/sampler configuration.
~TextureFilterInput() override
constexpr static TRect MakeSize(const TSize< U > &size)
std::optional< Rect > GetCoverage(const Entity &entity) const override
std::shared_ptr< Texture > texture
A 4x4 matrix using column-major storage.