Class ConstantBufferInfo
Constant buffer graphics resource information.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferInfo : GraphicsResourceInfo
Constructors
ConstantBufferInfo(string, int, uint, UpdatePolicy, ParameterInfo[])
Initializes a new instance of the ConstantBufferInfo class.
Declaration
public ConstantBufferInfo(string name, int slot, uint size, UpdatePolicy updatePolicy, ParameterInfo[] parameters)
Parameters
Type | Name | Description |
---|---|---|
string | name | ConstantBuffer name. |
int | slot | ConstantBuffer slot. |
uint | size | ConstantBuffer size. |
UpdatePolicy | updatePolicy | ConstantBuffer update policy. |
ParameterInfo[] | parameters | The parameter info array. |
ConstantBufferInfo(string, string, string, List<StructInfo>)
Initializes a new instance of the ConstantBufferInfo class.
Declaration
public ConstantBufferInfo(string name, string offset, string content, List<StructInfo> structs)
Parameters
Type | Name | Description |
---|---|---|
string | name | ConstantBuffer name. |
string | offset | ConstantBuffer slot. |
string | content | ConstantBuffer content. |
List<StructInfo> | structs | List of structs. |
Fields
Parameters
The parameters for the constant buffer.
Declaration
public ParameterInfo[] Parameters
Field Value
Type | Description |
---|---|
ParameterInfo[] |
Size
The constant buffer size.
Declaration
public uint Size
Field Value
Type | Description |
---|---|
uint |
UpdatePolicy
The constant buffer update policy.
Declaration
public UpdatePolicy UpdatePolicy
Field Value
Type | Description |
---|---|
UpdatePolicy |
Methods
Equals(GraphicsResourceInfo)
Compares resource info with another.
Declaration
public override bool Equals(GraphicsResourceInfo other)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | other | Other resource info. |
Returns
Type | Description |
---|---|
bool | True if they are equal, otherwise false. |
Overrides
GetHashCode()
Gets the hash code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash integer. |
Overrides
Read(BinaryReader)
Reads a ConstantBufferInfo from a binary file.
Declaration
public static ConstantBufferInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
ConstantBufferInfo | The read ConstantBufferInfo. |
Write(BinaryWriter)
Writes ConstantBufferInfo into a binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |