Skip to content

Support normalized 16-bit texture formats #1934

Closed
@kvark

Description

@kvark

Is your feature request related to a problem? Please describe.
It's often convenient to process the data in shaders as u16 and store it this way. However, reading it in the shader is problematic: currently we have no 16-bit normalized formats, so it has to be bound as integer. But integer textures can't be sampled. So using them is highly restricted today without the normalization.

Describe the solution you'd like
Exposed a set of 16-bit normalized formats gated by a feature.

Describe alternatives you've considered

Additional context
Requested on matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions