这是indexloc提供的服务,不要输入任何密码
Skip to content

Does compositingAlphaMode affect using the canvas as an image source? #1847

@kainino0x

Description

@kainino0x

In #1839 we spec the behavior of reading from WebGPU canvases from other APIs, but we need to clarify whether compositingAlphaMode affects those.

  1. If compositingAlphaMode is "opaque" does that mean e.g. drawImage reads opaque values?
  2. If we add compositingAlphaMode "unpremultiplied" would that mean e.g. texImage2D sees it as an unpremultiplied source?

My initial feeling is that the answers to both should be yes. In that case we should also probably rename compositingAlphaMode to something like canvasAlphaMode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions