Class Buffer
This class represents a buffer resource.
Inheritance
Buffer
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class Buffer : GraphicsResource
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. It can be used in graphics debugging tools.
Declaration
public abstract string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateCounter
Gets the counter that increments every time this buffer is updated.
Declaration
public int UpdateCounter { get; }
Property Value
Type | Description |
---|---|
int |