Class GorgonIndexBufferInfo
Provides the necessary information required to set up a index buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonIndexBufferInfo : IGorgonIndexBufferInfo, IGorgonNamedObject
Constructors
| Edit this page View SourceGorgonIndexBufferInfo(IGorgonIndexBufferInfo, string)
Initializes a new instance of the GorgonIndexBufferInfo class.
Declaration
public GorgonIndexBufferInfo(IGorgonIndexBufferInfo info, string newName = null)
Parameters
Type | Name | Description |
---|---|---|
IGorgonIndexBufferInfo | info | A IGorgonIndexBufferInfo to copy settings from. |
string | newName | [Optional] The new name for the buffer. |
GorgonIndexBufferInfo(int)
Initializes a new instance of the GorgonIndexBufferInfo class.
Declaration
public GorgonIndexBufferInfo(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count | The number of indices |
Properties
| Edit this page View SourceBinding
Property to return the binding used to bind this buffer to the GPU.
Declaration
public VertexIndexBufferBinding Binding { get; set; }
Property Value
Type | Description |
---|---|
VertexIndexBufferBinding |
IndexCount
Property to set or return the number of indices to store.
Declaration
public int IndexCount { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Property to return the name of this object.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
Use16BitIndices
Property to set or return whether to use 16 bit values for indices.
Declaration
public bool Use16BitIndices { get; set; }
Property Value
Type | Description |
---|---|
bool |