Table of Contents

Class DeviceBuffer

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A device resource used to store arbitrary graphics data in various formats. The size of a DeviceBuffer is fixed upon creation, and resizing is not possible. See BufferDescription.

public abstract class DeviceBuffer : DeviceResource, BindableResource, MappableResource, IDisposable
Inheritance
DeviceBuffer
Implements
Inherited Members

Properties

IsDisposed

A bool indicating whether this instance has been disposed.

public abstract bool IsDisposed { get; }

Property Value

bool

Name

A string identifying this instance. Can be used to differentiate between objects in graphics debuggers and other tools.

public abstract string Name { get; set; }

Property Value

string

SizeInBytes

The total capacity, in bytes, of the buffer. This value is fixed upon creation.

public abstract uint SizeInBytes { get; }

Property Value

uint

Usage

A bitmask indicating how this instance is permitted to be used.

public abstract BufferUsage Usage { get; }

Property Value

BufferUsage

Methods

Dispose()

Frees unmanaged device resources controlled by this instance.

public abstract void Dispose()