46 std::shared_ptr<Texture>
texture = MakeTexture(
ISize(100, 100));
52 std::shared_ptr<ContentContext> renderer = GetContentContext();
55 BufferView buffer_view = renderer->GetTransientsDataBuffer().Emplace(
61 std::optional<Entity> result = filter_contents.
GetEntity(
62 *renderer, entity, std::nullopt);
64 EXPECT_TRUE(result.has_value());
void SetBlendMode(BlendMode blend_mode)
void SetForegroundColor(std::optional< Color > color)
Sets a source color which is blended after all of the inputs have been blended.
std::optional< Entity > GetEntity(const ContentContext &renderer, const Entity &entity, const std::optional< Rect > &coverage_hint) const
Create an Entity that renders this filter's output.
void SetInputs(FilterInput::Vector inputs)
The input texture sources for this filter. Each input's emitted texture is expected to have premultip...
std::shared_ptr< Texture > MakeTexture(ISize size)
Create a texture that has been cleared to transparent black.