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

copyExternalImageToTexture should allow copying to the new 16unorm formats #5289

@kainino0x

Description

@kainino0x

copyExternalImageToTexture has a fixed set of allowed target formats:

  • "r8unorm"
  • "r16float"
  • "r32float"
  • "rg8unorm"
  • "rg16float"
  • "rg32float"
  • "rgba8unorm"
  • "rgba8unorm-srgb"
  • "bgra8unorm"
  • "bgra8unorm-srgb"
  • "rgb10a2unorm"
  • "rgba16float"
  • "rgba32float"

We recently added 16unorm formats to the spec in (#5160) but didn't update this list. We should, for 16-bit PNGs for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU API

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions