Documentation
    Preparing search index...

    Interface ComputeBufferOptions

    Options for createComputeBuffer: a byte size, or initial contents.

    interface ComputeBufferOptions {
        data?: ArrayBufferView<ArrayBufferLike>;
        label?: string;
        size?: number;
    }
    Index
    data?: ArrayBufferView<ArrayBufferLike>

    Initial contents; the allocation takes the view's byteLength.

    label?: string

    Diagnostic name.

    size?: number

    Allocation size in bytes — a positive multiple of 4 (writeBuffer's own rule, §62). Exactly one of size and data must be given.