Class GorgonConstantBufferInfo
Provides information on how to set up a constant buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonConstantBufferInfo : IGorgonConstantBufferInfo, IGorgonNamedObject
Constructors
| Edit this page View SourceGorgonConstantBufferInfo(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. |
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 SourceName
Property to return the name of this object.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
Usage
Property to set or return the intended usage flags for this buffer.
Declaration
public ResourceUsage Usage { get; set; }
Property Value
Type | Description |
---|---|
ResourceUsage |