docs/android/dokka/filament-android/com.google.android.filament/-index-buffer/index.md
//filament-android/com.google.android.filament/IndexBuffer
open class IndexBuffer
A buffer containing vertex indices into a VertexBuffer. Indices can be 16 or 32 bit. The buffer itself is a GPU resource, therefore mutating the data can be relatively slow. Typically these buffers are constant. It is possible, and even encouraged, to use a single index buffer for several Renderables.
| VertexBuffer |
| RenderableManager |
| Name | Summary |
|---|---|
| Builder | [main] |
| open class Builder |
| Name | Summary |
|---|---|
| getIndexCount | [main] |
| open fun getIndexCount(): Int | |
Returns the size of this IndexBuffer in elements. | |
| getNativeObject | [main] |
| open fun getNativeObject(): Long | |
| setBuffer | [main] |
| open fun setBuffer(engine: Engine, buffer: Buffer) | |
Asynchronously copy-initializes this IndexBuffer from the data provided. | |
| [main] | |
| open fun setBuffer(engine: Engine, buffer: Buffer, destOffsetInBytes: Int, count: Int) | |
| open fun setBuffer(engine: Engine, buffer: Buffer, destOffsetInBytes: Int, count: Int, handler: Any, callback: Runnable) | |
Asynchronously copy-initializes a region of this IndexBuffer from the data provided. |