BufferObject

actual class BufferObject

A generic GPU buffer for storing data.

BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.

For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.

See also

, IndexBuffer

expect class BufferObject

A generic GPU buffer for storing data.

BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.

For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.

See also

, IndexBuffer

actual class BufferObject(jsBufferObject: BufferObject)

A generic GPU buffer for storing data.

BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.

For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.

See also

, IndexBuffer

actual class BufferObject

A generic GPU buffer for storing data.

BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.

For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.

See also

, IndexBuffer

actual class BufferObject

A generic GPU buffer for storing data.

BufferObject usage is optional and mainly useful when you need to share data between multiple VertexBuffer instances. It also allows you to efficiently swap-out buffers in VertexBuffer.

For simple use cases where you don't need to share data, it is not necessary to use BufferObject. The buffer is created uninitialized; use setBuffer() to initialize it.

See also

, IndexBuffer

Constructors

Link copied to clipboard
constructor(jsBufferObject: BufferObject)

Types

Link copied to clipboard

Binding type options for BufferObject.

Binding type options for BufferObject.

Binding type options for BufferObject.

Binding type options for BufferObject.

Binding type options for BufferObject.

Link copied to clipboard
actual class Builder

Builder for creating BufferObject instances.

expect class Builder

Builder for creating BufferObject instances.

actual class Builder

Builder for creating BufferObject instances.

actual class Builder

Builder for creating BufferObject instances.

actual class Builder

Builder for creating BufferObject instances.

Properties

Link copied to clipboard
actual val byteCount: Int

Gets the size of this BufferObject in bytes.

expect val byteCount: Int

Gets the size of this BufferObject in bytes.

actual val byteCount: Int

Gets the size of this BufferObject in bytes.

actual val byteCount: Int

Gets the size of this BufferObject in bytes.

actual val byteCount: Int

Gets the size of this BufferObject in bytes.

Link copied to clipboard
val nativeBufferObject: BufferObject

Functions

Link copied to clipboard
actual fun setBuffer(engine: Engine, data: ByteArray)

Asynchronously copies data to initialize a region of this BufferObject.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Asynchronously copies data to a region of this BufferObject with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Asynchronously copies data to a region of this BufferObject with callback.

expect fun setBuffer(engine: Engine, data: ByteArray)

Asynchronously copies data to initialize a region of this BufferObject.

expect fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Asynchronously copies data to a region of this BufferObject with offset and count.

expect fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)

Asynchronously copies data to a region of this BufferObject with callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Asynchronously copies data to initialize a region of this BufferObject.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Asynchronously copies data to a region of this BufferObject with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Asynchronously copies data to a region of this BufferObject with callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Asynchronously copies data to initialize a region of this BufferObject.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Asynchronously copies data to a region of this BufferObject with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Asynchronously copies data to a region of this BufferObject with callback.

actual fun setBuffer(engine: Engine, data: ByteArray)

Asynchronously copies data to initialize a region of this BufferObject.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

Asynchronously copies data to a region of this BufferObject with offset and count.

actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

Asynchronously copies data to a region of this BufferObject with callback.