Gorgon
Show / Hide Table of Contents

Class GorgonVertexBufferInfo

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

Inheritance
object
GorgonVertexBufferInfo
Implements
IGorgonVertexBufferInfo
IGorgonNamedObject
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonVertexBufferInfo : IGorgonVertexBufferInfo, IGorgonNamedObject

Constructors

| Edit this page View Source

GorgonVertexBufferInfo(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 info parameter is null.

| Edit this page View Source

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 Source

Binding

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
| Edit this page View Source

Name

Property to return the name of this object.

Declaration
public string Name { get; set; }
Property Value
Type Description
string
| Edit this page View Source

SizeInBytes

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

Declaration
public int SizeInBytes { get; set; }
Property Value
Type Description
int
| Edit this page View Source

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

Implements

IGorgonVertexBufferInfo
IGorgonNamedObject

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