Gorgon
Show / Hide Table of Contents

Interface IGorgonIndexBufferInfo

Provides the necessary information required to set up a index buffer.

Inherited Members
IGorgonNamedObject.Name
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 Source

Binding

Property to return the binding used to bind this buffer to the GPU.

Declaration
VertexIndexBufferBinding Binding { get; }
Property Value
Type Description
VertexIndexBufferBinding
| Edit this page View Source

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.

| Edit this page View Source

Usage

Property to return the intended usage for binding to the GPU.

Declaration
ResourceUsage Usage { get; }
Property Value
Type Description
ResourceUsage
| Edit this page View Source

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.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author