Constructors

  • Creates a new Geometry object.

    Parameters

    • device: GPUDevice

      The GPUDevice to use for creating buffers.

    • model: IGeometry

      The geometry data, including vertices, indices, and vertex type.

    Returns Geometry

Properties

device: GPUDevice

The GPUDevice to use for creating buffers.

indexBuffer: GPUBuffer
model: IGeometry

The geometry data, including vertices, indices, and vertex type.

numOfVerticles: number
vertexBuffer: GPUBuffer

Methods

  • Creates a vertex buffer layout for the geometry.

    Parameters

    • shaderLocation: number

      The location of the vertex attribute in the shader.

    Returns GPUVertexBufferLayout

    The GPUVertexBufferLayout object.