Struct InputLayoutDescription
- Namespace
- Pie
- Assembly
- Pie.dll
Describes how an InputLayout should behave.
public struct InputLayoutDescription : IEquatable<InputLayoutDescription>
- Implements
- Inherited Members
Constructors
InputLayoutDescription(Format, uint, uint, InputType)
Create a new input layout description for use with an InputLayout.
public InputLayoutDescription(Format format, uint offset, uint slot, InputType inputType)
Parameters
formatFormatThe format of this attribute.
offsetuintThe offset, in bytes, of this attribute.
slotuintThe vertex buffer slot of this attribute.
inputTypeInputTypeThe input type of this attribute.
Fields
Format
The format of this attribute.
public readonly Format Format
Field Value
- Format
- Describes how an should behave.
InputType
The input type of this attribute.
public InputType InputType
Field Value
- InputType
- Describes how an should behave.
Offset
The offset, in bytes, of this attribute.
public readonly uint Offset
Field Value
- uint
- Describes how an should behave.
Slot
The vertex buffer slot of this attribute.
public uint Slot
Field Value
- uint
- Describes how an should behave.
Methods
Equals(InputLayoutDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(InputLayoutDescription other)
Parameters
otherInputLayoutDescriptionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(InputLayoutDescription, InputLayoutDescription)
public static bool operator ==(InputLayoutDescription left, InputLayoutDescription right)
Parameters
leftInputLayoutDescription- Describes how an should behave.
rightInputLayoutDescription- Describes how an should behave.
Returns
- bool
- Describes how an should behave.
operator !=(InputLayoutDescription, InputLayoutDescription)
public static bool operator !=(InputLayoutDescription left, InputLayoutDescription right)
Parameters
leftInputLayoutDescription- Describes how an should behave.
rightInputLayoutDescription- Describes how an should behave.
Returns
- bool
- Describes how an should behave.