Skip to content

WebGPU: Support dual-source-blending ? #693

Description

@WangHoi

dual-source-blending is a very useful WebGPU extension.

Use cases:

  • 2D rendering: implement all Porter-Duff blend modes.
  • Volume rendering: Tyndall effect etc.

Potential task

  • Map blend modes: eg: BLEND_FACTOR_SRC1_COLOR to WGPUBlendFactor_Src1
  • WGSL Shader code converter: enable dual_source_blending;, @location(0) @blend_src(1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions