Class DeviceBuffer
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.
Inheritance
System.Object
DeviceBuffer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public abstract class DeviceBuffer : DeviceResource, BindableResource, MappableResource, IDisposable
Properties
IsDisposed
A bool indicating whether this instance has been disposed.
Declaration
public abstract bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
A string identifying this instance. Can be used to differentiate between objects in graphics debuggers and other tools.
Declaration
public abstract string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SizeInBytes
The total capacity, in bytes, of the buffer. This value is fixed upon creation.
Declaration
public abstract uint SizeInBytes { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Usage
A bitmask indicating how this instance is permitted to be used.
Declaration
public abstract BufferUsage Usage { get; }
Property Value
Type | Description |
---|---|
BufferUsage |
Methods
Dispose()
Frees unmanaged device resources controlled by this instance.
Declaration
public abstract void Dispose()
Implements
System.IDisposable