BufferDescriptor
class BufferDescriptor
A descriptor used to create a GPU buffer.
Summary
Public constructors |
|---|
BufferDescriptor( |
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
usage
Added in 1.0.0-alpha01
var usage: Int
The allowed usages for the buffer (e.g., vertex, uniform, copy_dst).