GPUBufferDescriptor


public final class GPUBufferDescriptor


Describes a buffer to be created.

Summary

Public constructors

GPUBufferDescriptor(
    int usage,
    long size,
    String label,
    boolean mappedAtCreation
)

Public methods

final String

A human-readable label for debugging.

final long

The size of the buffer in bytes.

final int

The allowed usages for the buffer.

final boolean
final void

A human-readable label for debugging.

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.

Public constructors

GPUBufferDescriptor

Added in 1.0.0-alpha04
public GPUBufferDescriptor(
    int usage,
    long size,
    String label,
    boolean mappedAtCreation
)

Public methods

getLabel

Added in 1.0.0-alpha04
public final String getLabel()

A human-readable label for debugging.

getSize

Added in 1.0.0-alpha04
public final long getSize()

The size of the buffer in bytes.

getUsage

Added in 1.0.0-alpha04
public final int getUsage()

The allowed usages for the buffer.

isMappedAtCreation

Added in 1.0.0-alpha04
public final boolean isMappedAtCreation()

setLabel

Added in 1.0.0-alpha04
public final void setLabel(String label)

A human-readable label for debugging.

setMappedAtCreation

Added in 1.0.0-alpha04
public final void setMappedAtCreation(boolean mappedAtCreation)

setSize

Added in 1.0.0-alpha04
public final void setSize(long size)

The size of the buffer in bytes.

setUsage

Added in 1.0.0-alpha04
public final void setUsage(int usage)

The allowed usages for the buffer.