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

Compat: Disallow bgra8unorm-srgb textures. #4514

@greggman

Description

@greggman

The initial proposal is below. This is a place to discuss


Justification: OpenGL ES does not support sRGB BGRA texture formats.

Alternatives considered:

  • use a compute shader to swizzle bgra8unorm-srgb to rgba8unorm-srgb on copyBufferToTexture() and the reverse on copyTextureToBuffer()
    • pros:
      • wide compatibility
    • cons:
      • a performance cliff for developers
      • increased VRAM usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatWebGPU Compatibility Mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions