Skip to content

Support Rgb9e5 packed float texture format #957

Closed

Description

@cwfitzgerald

The Rgb9e5 texture format is widely supported and very useful for representing things like HDR textures in a space efficient format. It features 9 bit mantissas with no sign bits for each component, then a 5 bit shared exponent.

Vulkan: E5B9G9R9_UFLOAT_PACK32
Metal: rgb9e5Float
D3D: DXGI_FORMAT_R9G9B9E5_SHAREDEXP (might go back all the way to D3D9?)
OpenGL: RGB9_E5 (support is required in 4.6, and possibly has been for a while)

Seems completely supported under all apis, so should be clear to add. I would recommend the name Rgb9e5Float.

Activity

  1. Kangz commented on Jul 27, 2020

    @Kangz
    Contributor

    I did a test change in Dawn and it seems that the format works the same way in all APIs. Unless we find a blocking issue, we should add it to unextended WebGPU.

  2. kvark commented on Jul 27, 2020

    @kvark
    Contributor

    @cwfitzgerald make it a PR, maybe? Seems like it can easily go in.

  3. dneto0 commented on Jul 30, 2020

    @dneto0
    Contributor

    Yes, in all versions of Vulkan it's a required format for sampled image, sampled image with linear filtering, and blit source.
    (Table 49 in https://www.khronos.org/registry/vulkan/specs/1.0/html/chap33.html#features-required-format-support)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions