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
format
FormatThe format of this attribute.
offset
uintThe offset, in bytes, of this attribute.
slot
uintThe vertex buffer slot of this attribute.
inputType
InputTypeThe 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
other
InputLayoutDescriptionAn 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
left
InputLayoutDescription- Describes how an should behave.
right
InputLayoutDescription- Describes how an should behave.
Returns
- bool
- Describes how an should behave.
operator !=(InputLayoutDescription, InputLayoutDescription)
public static bool operator !=(InputLayoutDescription left, InputLayoutDescription right)
Parameters
left
InputLayoutDescription- Describes how an should behave.
right
InputLayoutDescription- Describes how an should behave.
Returns
- bool
- Describes how an should behave.