Skip to content

[buffer-view] Viewing the content of a storage buffer as different types. #5338

Description

@Kangz

This is a bindless companion feature request.

With bindless developers will have much more GPU-centric algorithms that use storage buffers as large memory allocations with custom data in it. They might pass a "pointer" to the data to their shaders with an offset in storage buffer (through an immediate). At the moment to view the content of a storage buffer as any type at any offset, they need to declare it as a array<u32/uvec4> and manually index into it.

This is awkward. Instead we should have some way to view a range of a storage buffer as a struct type (with defined OOB behavior).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issues

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions