Interface IGorgonIndexBufferInfo
Provides the necessary information required to set up a index buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonIndexBufferInfo : IGorgonNamedObject
Remarks
This provides an immutable view of the index buffer information so that it cannot be modified after the buffer is created.
Properties
| Edit this page View SourceBinding
Property to return the binding used to bind this buffer to the GPU.
Declaration
VertexIndexBufferBinding Binding { get; }
Property Value
Type | Description |
---|---|
VertexIndexBufferBinding |
IndexCount
Property to return the number of indices to store.
Declaration
int IndexCount { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
This value should be larger than 0, or else an exception will be thrown when the buffer is created.
Usage
Property to return the intended usage for binding to the GPU.
Declaration
ResourceUsage Usage { get; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Use16BitIndices
Property to return whether to use 16 bit values for indices.
Declaration
bool Use16BitIndices { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Specifying 16 bit indices might improve performance.
The default value is true.