Interface that provides the data textures that implement the GPU-side memory. This interface is used within DrawTechnique instances to access the GPU memory resources.

interface GPUMemoryReader {
    dataTextures: DataTextures;
    getDrawArraysParamsForMesh(
        batchIndex: number,
        meshIndex: number,
    ): { count: number; first: number };
    getMeshAtIndex(batchIndex: number, meshIndex: number): SceneMesh;
}

Implemented by

Properties

dataTextures: DataTextures

The data textures.

Methods

  • Retrieves parameters for a drawArrays() call to render a specific mesh within a specific batch. This supports surface-picking, where we only draw the specific mesh being surface-picked.

    Parameters

    • batchIndex: number
    • meshIndex: number

    Returns { count: number; first: number }