Gorgon
Show / Hide Table of Contents

Interface IGorgonVertexBufferInfo

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

Inherited Members
IGorgonNamedObject.Name
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonVertexBufferInfo : IGorgonNamedObject
Remarks

This provides an immutable view of the vertex 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

SizeInBytes

Property to return the size of the buffer, in bytes.

Declaration
int SizeInBytes { 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

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