Class ConstantBufferUsage
Constant buffer in use.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferUsage : GraphicsResourceUsage
Constructors
ConstantBufferUsage(ConstantBufferInfo)
Initializes a new instance of the ConstantBufferUsage class.
Declaration
public ConstantBufferUsage(ConstantBufferInfo cbufferInfo)
Parameters
Type | Name | Description |
---|---|---|
ConstantBufferInfo | cbufferInfo | Constant buffer information. |
ConstantBufferUsage(int, ShaderStages, ParameterUsage[])
Initializes a new instance of the ConstantBufferUsage class.
Declaration
public ConstantBufferUsage(int slot, ShaderStages stages, ParameterUsage[] parameters)
Parameters
Type | Name | Description |
---|---|---|
int | slot | Constant buffer slot. |
ShaderStages | stages | Constant buffer stages in use. |
ParameterUsage[] | parameters | Constant buffer parameters usage. |
Fields
Parameters
The parameters for the constant buffer.
Declaration
public ParameterUsage[] Parameters
Field Value
Type | Description |
---|---|
ParameterUsage[] |
Methods
ClearStages()
Clears information about stages in use.
Declaration
public override void ClearStages()
Overrides
Clone()
Returns a cloned instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object | Cloned instance. |
Overrides
Read(BinaryReader)
Reads a ConstantBufferUsage from a binary file.
Declaration
public static ConstantBufferUsage Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
ConstantBufferUsage | The read ConstantBufferUsage. |
Write(BinaryWriter)
Writes ConstantBufferUsage into a binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |