Interface GPUBufferBinding

    interface GPUBufferBinding {
        buffer: GPUBuffer;
        offset?: number;
        size?: number;
    }

    Properties

    Properties

    buffer: GPUBuffer

    The GPUBuffer to bind.

    offset?: number

    The offset, in bytes, from the beginning of GPUBufferBinding#buffer to the beginning of the range exposed to the shader by the buffer binding.

    size?: number

    The size, in bytes, of the buffer binding. If not map/exist|provided, specifies the range starting at GPUBufferBinding#offset and ending at the end of GPUBufferBinding#buffer.