BufferDescriptor
public final class BufferDescriptor
A descriptor used to create a GPU buffer.
Summary
Public constructors |
|---|
BufferDescriptor( |
Public methods |
|
|---|---|
final String |
getLabel()The label for the buffer. |
final boolean |
|
final long |
getSize()The size of the buffer in bytes. |
final int |
getUsage()The allowed usages for the buffer (e.g., vertex, uniform, copy_dst). |
final void |
The label for the buffer. |
final void |
setMappedAtCreation(boolean mappedAtCreation) |
final void |
setSize(long size)The size of the buffer in bytes. |
final void |
setUsage(int usage)The allowed usages for the buffer (e.g., vertex, uniform, copy_dst). |
Public constructors
BufferDescriptor
Added in 1.0.0-alpha01
public BufferDescriptor(
int usage,
long size,
String label,
boolean mappedAtCreation
)
Public methods
getUsage
Added in 1.0.0-alpha01
public final int getUsage()
The allowed usages for the buffer (e.g., vertex, uniform, copy_dst).
setMappedAtCreation
Added in 1.0.0-alpha01
public final void setMappedAtCreation(boolean mappedAtCreation)
setSize
Added in 1.0.0-alpha01
public final void setSize(long size)
The size of the buffer in bytes.
setUsage
Added in 1.0.0-alpha01
public final void setUsage(int usage)
The allowed usages for the buffer (e.g., vertex, uniform, copy_dst).