Documentation
    Preparing search index...

    Interface GpuBindGroupEntry

    A bound resource: a buffer range, a texture view, or a sampler.

    interface GpuBindGroupEntry {
        binding: number;
        resource: object | GpuBufferBinding;
    }
    Index
    binding: number

    Binding number, matching the layout's.

    resource: object | GpuBufferBinding

    The bound resource: a buffer range, a texture view, or a sampler.

    Typed as two constituents though the prose names three, because GpuTextureView and GpuSampler are both opaque object aliases on this surface — naming both would duplicate one union constituent — and it is the matching layout entry, never the handle's shape, that tells WebGPU which kind it received.