Class GorgonVertexBufferInfo
Provides the necessary information required to set up a vertex buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonVertexBufferInfo : IGorgonVertexBufferInfo, IGorgonNamedObject
Constructors
| Edit this page View SourceGorgonVertexBufferInfo(IGorgonVertexBufferInfo, string)
Initializes a new instance of the GorgonVertexBufferInfo class.
Declaration
public GorgonVertexBufferInfo(IGorgonVertexBufferInfo info, string newName = null)
Parameters
Type | Name | Description |
---|---|---|
IGorgonVertexBufferInfo | info | A IGorgonVertexBufferInfo to copy settings from. |
string | newName | [Optional] The new name for the buffer. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
GorgonVertexBufferInfo(int)
Initializes a new instance of the GorgonVertexBufferInfo class.
Declaration
public GorgonVertexBufferInfo(int sizeInBytes)
Parameters
Type | Name | Description |
---|---|---|
int | sizeInBytes | The size in bytes. |
Properties
| Edit this page View SourceBinding
Property to set or return the binding used to bind this buffer to the GPU.
Declaration
public VertexIndexBufferBinding Binding { get; set; }
Property Value
Type | Description |
---|---|
VertexIndexBufferBinding |
Name
Property to return the name of this object.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SizeInBytes
Property to set or return the size of the buffer, in bytes.
Declaration
public int SizeInBytes { get; set; }
Property Value
Type | Description |
---|---|
int |
Usage
Property to set or return the intended usage for binding to the GPU.
Declaration
public ResourceUsage Usage { get; set; }
Property Value
Type | Description |
---|---|
ResourceUsage |