Class ParameterInfo
Parameter Info class.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class ParameterInfo : IEquatable<ParameterInfo>
Constructors
ParameterInfo(string, string, int, string)
Initializes a new instance of the ParameterInfo class.
Declaration
public ParameterInfo(string name, string type, int offset, string tag)
Parameters
Type | Name | Description |
---|---|---|
string | name | Parameter name. |
string | type | Parameter type (bool, int, float, float2, float3 ...) |
int | offset | Parameter slot (c0, c1.x, c2.w ...) |
string | tag | Parameter tag ([Default(...)], [Time], [WorldViewProjection]). |
ParameterInfo(string, string, string, string, string, List<StructInfo>)
Initializes a new instance of the ParameterInfo class.
Declaration
public ParameterInfo(string name, string type, string offset, string tag, string arrayCount, List<StructInfo> structs)
Parameters
Type | Name | Description |
---|---|---|
string | name | Parameter name. |
string | type | Parameter type (bool, int, float, float2, float3 ...) |
string | offset | Parameter slot (c0, c1.x, c2.w ...) |
string | tag | Parameter tag ([Default(...)], [Time], [WorldViewProjection]). |
string | arrayCount | Array Count. |
List<StructInfo> | structs | Structs. |
Fields
ArrayCount
Parameter array count attribute.
Declaration
public int ArrayCount
Field Value
Type | Description |
---|---|
int |
DefaultValue
Parameter default value attribute.
Declaration
public object DefaultValue
Field Value
Type | Description |
---|---|
object |
Name
Parameter name attribute.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Offset
Parameter offset attribute.
Declaration
public int Offset
Field Value
Type | Description |
---|---|
int |
Semantic
Parameter semantic attribute.
Declaration
public ParameterInfo.ParameterSemantic Semantic
Field Value
Type | Description |
---|---|
ParameterInfo.ParameterSemantic |
Tag
Parameter tag attribute.
Declaration
public string Tag
Field Value
Type | Description |
---|---|
string |
Type
Parameter type attribute.
Declaration
public Type Type
Field Value
Type | Description |
---|---|
Type |
TypeSize
Parameter type size attribute.
Declaration
public int TypeSize
Field Value
Type | Description |
---|---|
int |
sType
Parameter type in string attribute.
Declaration
public string sType
Field Value
Type | Description |
---|---|
string |
Methods
Equals(ParameterInfo)
Declaration
public bool Equals(ParameterInfo other)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | other |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GenerateType(string, List<StructInfo>)
Generates parameter type by string type.
Declaration
protected void GenerateType(string stype, List<StructInfo> structs)
Parameters
Type | Name | Description |
---|---|---|
string | stype | String type. |
List<StructInfo> | structs | Struct info collection. |
GenerateTypeFromFullName(string)
Generates parameter type by string type.
Declaration
protected void GenerateTypeFromFullName(string fullname)
Parameters
Type | Name | Description |
---|---|---|
string | fullname | Type fullname. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
Read(BinaryReader)
Read a ParameterInfo from binary file.
Declaration
public static ParameterInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
ParameterInfo | The read parameterInfo. |
ReadDefaultValues(string)
Read the default value.
Declaration
protected void ReadDefaultValues(string svalue)
Parameters
Type | Name | Description |
---|---|---|
string | svalue | Value in string format. |
ReadOffset(string)
Gets the reading offset.
Declaration
protected int ReadOffset(string offset)
Parameters
Type | Name | Description |
---|---|---|
string | offset | Offset. |
Returns
Type | Description |
---|---|
int | The reading offset. |
ReadTag(string)
Reads the tag.
Declaration
protected void ReadTag(string tag)
Parameters
Type | Name | Description |
---|---|---|
string | tag | The tag. |
Write(BinaryWriter)
Write a ParameterInfo into binary file.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |
Operators
operator ==(ParameterInfo, ParameterInfo)
Declaration
public static bool operator ==(ParameterInfo value1, ParameterInfo value2)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | value1 | |
ParameterInfo | value2 |
Returns
Type | Description |
---|---|
bool |
operator !=(ParameterInfo, ParameterInfo)
Declaration
public static bool operator !=(ParameterInfo value1, ParameterInfo value2)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | value1 | |
ParameterInfo | value2 |
Returns
Type | Description |
---|---|
bool |