Skip to content

Binding specific mip-levels for images #1407

@MoritzBrueckner

Description

@MoritzBrueckner

Is your feature request related to a problem? Please describe.
When using a readonly image2D uniform in a shader with imageStore(), there is currently no way of binding a specific mip-level to write to. It seems to be possible though with some graphics APIs and can be handy for a series of downsampling operations for example.

Describe the solution you'd like
A setTexture() function with a parameter to specify the mip level.

Describe alternatives you've considered
Using individual textures for each mip level, as for my concrete use case (downsampling an image) mip levels are not required and I only need one level per shader dispatch because each operation requires the result of the previous iteration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions