BufferDescriptor


class BufferDescriptor


A descriptor used to create a GPU buffer.

Summary

Public constructors

BufferDescriptor(
    usage: Int,
    size: Long,
    label: String?,
    mappedAtCreation: Boolean
)

Public properties

String?

The label for the buffer.

Boolean
Long

The size of the buffer in bytes.

Int

The allowed usages for the buffer (e.g., vertex, uniform, copy_dst).

Public constructors

BufferDescriptor

Added in 1.0.0-alpha01
BufferDescriptor(
    usage: Int,
    size: Long,
    label: String? = null,
    mappedAtCreation: Boolean = false
)

Public properties

label

Added in 1.0.0-alpha01
var labelString?

The label for the buffer.

mappedAtCreation

Added in 1.0.0-alpha01
var mappedAtCreationBoolean

size

Added in 1.0.0-alpha01
var sizeLong

The size of the buffer in bytes.

usage

Added in 1.0.0-alpha01
var usageInt

The allowed usages for the buffer (e.g., vertex, uniform, copy_dst).