Class ConstantBufferUsage
Constant buffer usage.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferUsage : GraphicsResourceUsage, ICloneable
Constructors
ConstantBufferUsage(ConstantBufferInfo)
Initializes a new instance of the ConstantBufferUsage class.
Declaration
public ConstantBufferUsage(ConstantBufferInfo cbufferInfo)
Parameters
Type | Name | Description |
---|---|---|
ConstantBufferInfo | cbufferInfo | Constant Buffer Info. |
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 constant buffer parameters.
Declaration
public ParameterUsage[] Parameters
Field Value
Type | Description |
---|---|
ParameterUsage[] |
Methods
ClearStages()
Clear information of stages in use.
Declaration
public override void ClearStages()
Overrides
Clone()
Return a cloned instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object | Cloned instance. |
Overrides
Read(BinaryReader)
Read a ConstantBufferUsage from binary file.
Declaration
public static ConstantBufferUsage Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
ConstantBufferUsage | The readed ConstantBufferUsage. |
Write(BinaryWriter)
Write ContantBufferUsage into binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |