Gorgon
Show / Hide Table of Contents

Class GorgonConstantBufferInfo

Provides information on how to set up a constant buffer.

Inheritance
object
GorgonConstantBufferInfo
Implements
IGorgonConstantBufferInfo
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 GorgonConstantBufferInfo : IGorgonConstantBufferInfo, IGorgonNamedObject

Constructors

| Edit this page View Source

GorgonConstantBufferInfo(IGorgonConstantBufferInfo, string)

Initializes a new instance of the GorgonConstantBufferInfo class.

Declaration
public GorgonConstantBufferInfo(IGorgonConstantBufferInfo info, string newName = null)
Parameters
Type Name Description
IGorgonConstantBufferInfo info

A IGorgonConstantBufferInfo to copy settings from.

string newName

[Optional] The new name for the buffer.

| Edit this page View Source

GorgonConstantBufferInfo(int)

Initializes a new instance of the GorgonConstantBufferInfo class.

Declaration
public GorgonConstantBufferInfo(int size)
Parameters
Type Name Description
int size

Properties

| 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 number of bytes to allocate for the buffer.

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 flags for this buffer.

Declaration
public ResourceUsage Usage { get; set; }
Property Value
Type Description
ResourceUsage

Implements

IGorgonConstantBufferInfo
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