GPUBufferDescriptor


class GPUBufferDescriptor


Describes a buffer to be created.

Summary

Public constructors

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

Public properties

String?

A human-readable label for debugging.

Boolean
Long

The size of the buffer in bytes.

Int

The allowed usages for the buffer.

Public constructors

GPUBufferDescriptor

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

Public properties

label

Added in 1.0.0-alpha04
var labelString?

A human-readable label for debugging.

mappedAtCreation

Added in 1.0.0-alpha04
var mappedAtCreationBoolean

size

Added in 1.0.0-alpha04
var sizeLong

The size of the buffer in bytes.

usage

Added in 1.0.0-alpha04
var usageInt

The allowed usages for the buffer.