Struct SemanticStruct
Struct that contains information about the semantic type and index.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public readonly struct SemanticStruct
Constructors
SemanticStruct(ElementSemanticType, uint)
Initializes a new instance of the SemanticStruct struct.
Declaration
public SemanticStruct(ElementSemanticType semantic, uint semanticIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
ElementSemanticType | semantic | The semantic of the element. |
uint | semanticIndex | The index of the semantic. |
Properties
Position_0
Gets the semantics of the default position.
Declaration
public static SemanticStruct Position_0 { get; }
Property Value
Type | Description |
---|---|
SemanticStruct |
Semantic
Gets the type of the element.
Declaration
public ElementSemanticType Semantic { get; }
Property Value
Type | Description |
---|---|
ElementSemanticType |
SemanticIndex
Gets the semantic index of the element.
Declaration
public uint SemanticIndex { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
operator ==(SemanticStruct, SemanticStruct)
Declaration
public static bool operator ==(SemanticStruct left, SemanticStruct right)
Parameters
Type | Name | Description |
---|---|---|
SemanticStruct | left | |
SemanticStruct | right |
Returns
Type | Description |
---|---|
bool |
operator !=(SemanticStruct, SemanticStruct)
Declaration
public static bool operator !=(SemanticStruct left, SemanticStruct right)
Parameters
Type | Name | Description |
---|---|---|
SemanticStruct | left | |
SemanticStruct | right |
Returns
Type | Description |
---|---|
bool |