Class Buffer
This class represent a buffer resource.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class Buffer : GraphicsResource, IDisposable
Constructors
Buffer(GraphicsContext)
Initializes a new instance of the Buffer class.
Declaration
protected Buffer(GraphicsContext context)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
Buffer(GraphicsContext, ref BufferDescription)
Initializes a new instance of the Buffer class.
Declaration
protected Buffer(GraphicsContext context, ref BufferDescription description)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
BufferDescription | description | The buffer description. |
Fields
Description
Gets the buffer description.
Declaration
public readonly BufferDescription Description
Field Value
Type | Description |
---|---|
BufferDescription |
Properties
Name
Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.
Declaration
public abstract string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateCounter
Gets the counter that counts every time that this buffer is updated.
Declaration
public int UpdateCounter { get; }
Property Value
Type | Description |
---|---|
int |