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 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 | ContantBuffer update policy.  | 
      
| ParameterInfo[] | parameters | The parameter info array.  | 
      
See Also
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 | Structs list.  | 
      
See Also
Fields
Parameters
The constant buffer parameters.
Declaration
public ParameterInfo[] Parameters
  Field Value
| Type | Description | 
|---|---|
| ParameterInfo[] | 
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 | 
|---|---|
| UpdatePolicy | 
See Also
Methods
Equals(GraphicsResourceInfo)
Compare resource info with other.
Declaration
public override bool Equals(GraphicsResourceInfo other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GraphicsResourceInfo | 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 | 
|---|---|---|
| BinaryReader | reader | The binary reader.  | 
      
Returns
| Type | Description | 
|---|---|
| ConstantBufferInfo | The read ConstantBufferInfo.  | 
      
See Also
Write(BinaryWriter)
Write ContantBufferInfo into binary file.
Declaration
public override void Write(BinaryWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryWriter | writer | The binary writer.  |