Interface GPUVertexBufferLayout

    interface GPUVertexBufferLayout {
        arrayStride: number;
        attributes: Iterable<GPUVertexAttribute, any, any>;
        stepMode?: GPUVertexStepMode;
    }

    Properties

    arrayStride: number

    The stride, in bytes, between elements of this array.

    attributes: Iterable<GPUVertexAttribute, any, any>

    An array defining the layout of the vertex attributes within each element.

    Whether each element of this array represents per-vertex data or per-instance data