#include <placeholder_filter_input.h>
Definition at line 12 of file placeholder_filter_input.h.
◆ PlaceholderFilterInput()
impeller::PlaceholderFilterInput::PlaceholderFilterInput |
( |
Rect |
coverage | ) |
|
|
explicit |
◆ ~PlaceholderFilterInput()
impeller::PlaceholderFilterInput::~PlaceholderFilterInput |
( |
| ) |
|
|
overridedefault |
◆ GetCoverage()
std::optional< Rect > impeller::PlaceholderFilterInput::GetCoverage |
( |
const Entity & |
entity | ) |
const |
|
overridevirtual |
◆ GetSnapshot()
std::optional< Snapshot > impeller::PlaceholderFilterInput::GetSnapshot |
( |
std::string_view |
label, |
|
|
const ContentContext & |
renderer, |
|
|
const Entity & |
entity, |
|
|
std::optional< Rect > |
coverage_limit, |
|
|
int32_t |
mip_count = 1 |
|
) |
| const |
|
overridevirtual |
Evaluates the filter input and returns a snapshot of the result.
This method renders the input (which could be another filter, contents, or a texture) into a Snapshot
object, which contains the resulting texture and its transform relative to the current render target.
Implementations are typically lazy and may cache the result, ensuring that the input is only rendered once even if GetSnapshot
is called multiple times.
- Parameters
-
[in] | label | A debug label for the rendering operation and the resulting snapshot texture. |
[in] | renderer | The content context providing rendering resources. |
[in] | entity | The entity associated with this filter input, providing transform and other contextual information. |
[in] | coverage_limit | An optional rectangle to limit the area of the input that needs to be rendered. This can be used as an optimization. |
[in] | mip_count | The number of mip levels to generate for the snapshot texture. Defaults to 1 (no mips). |
- Returns
- A
Snapshot
containing the rendered texture and its transform, or std::nullopt
if the input cannot be rendered or results in an empty output.
Implements impeller::FilterInput.
Definition at line 16 of file placeholder_filter_input.cc.
The documentation for this class was generated from the following files: