GPUBufferDescriptor


class GPUBufferDescriptor


A descriptor used to create a GPU buffer.

Summary

Public constructors

GPUBufferDescriptor(
    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

GPUBufferDescriptor

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

Public properties

label

Added in 1.0.0-alpha02
var labelString?

The label for the buffer.

mappedAtCreation

Added in 1.0.0-alpha02
var mappedAtCreationBoolean

size

Added in 1.0.0-alpha02
var sizeLong

The size of the buffer in bytes.

usage

Added in 1.0.0-alpha02
var usageInt

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