Skip to content

Use associated type for draw state #1006

@bvssvni

Description

@bvssvni

Blending is not usually required for widgets, and using a custom draw state means overhead. Perhaps we could use the native draw state?

  • A software rasterizer might want full Duff/Porter blending
  • A GPU rasterizer might want pre-multiplied alpha with a simple blend equation

Some features, such as rectangle clipping and stencil buffer, could be handled through a trait.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions