Class ConstantBufferInfo
Constant buffer graphic resource information.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferInfo : GraphicsResourceInfo, IEquatable<GraphicsResourceInfo>
Constructors
ConstantBufferInfo(string, int, uint, UpdatePolicy, ParameterInfo[])
Initializes a new instance of the Constant
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. |
Update |
updatePolicy | ContantBuffer update policy. |
Parameter |
parameters | The parameter info array. |
See Also
ConstantBufferInfo(string, string, string, List<StructInfo>)
Initializes a new instance of the Constant
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<Struct |
structs | Structs list. |
See Also
Fields
Parameters
The constant buffer parameters.
Declaration
public ParameterInfo[] Parameters
Field Value
Type | Description |
---|---|
Parameter |
See Also
Size
The constant buffer size.
Declaration
public uint Size
Field Value
Type | Description |
---|---|
uint |
See Also
UpdatePolicy
The constant buffer update policy.
Declaration
public UpdatePolicy UpdatePolicy
Field Value
Type | Description |
---|---|
Update |
See Also
Methods
Equals(GraphicsResourceInfo)
Compare resource info with other.
Declaration
public override bool Equals(GraphicsResourceInfo other)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
other | Other resource info. |
Returns
Type | Description |
---|---|
bool | True whether are equals or false in otherwise. |
Overrides
See Also
GetHashCode()
Gets the hash code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | hast integer. |
Overrides
See Also
Read(BinaryReader)
Read a ConstantBufferInfo from binary file.
Declaration
public static ConstantBufferInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
Binary |
reader | The binary reader. |
Returns
Type | Description |
---|---|
Constant |
The read ConstantBufferInfo. |
See Also
Write(BinaryWriter)
Write ContantBufferInfo into binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
Binary |
writer | The binary writer. |