Interface GPUVertexAttribute

    interface GPUVertexAttribute {
        format: GPUVertexFormat;
        offset: number;
        shaderLocation: number;
    }

    Properties

    The GPUVertexFormat of the attribute.

    offset: number

    The offset, in bytes, from the beginning of the element to the data for the attribute.

    shaderLocation: number

    The numeric location associated with this attribute, which will correspond with a "@location" attribute declared in the GPURenderPipelineDescriptor#vertex.module.