/// <summary> /// Initializes a new instance of <see cref="CustomVertexBufferProperties"/> class. /// </summary> /// <param name="inputSignature"></param> /// <param name="inputElements"></param> /// <param name="stride"></param> public CustomVertexBufferProperties(byte[] inputSignature, InputElement[] inputElements, int stride) { InputSignature = inputSignature; InputElements = inputElements; Stride = stride; }
/// <summary> /// Determines whether the specified <see cref="InputElement"/> is equal to this instance. /// </summary> /// <param name="obj">The <see cref="InputElement"/> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="InputElement"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(InputElement other) { return Equals(other.SemanticName, SemanticName) && other.SemanticIndex == SemanticIndex && Equals(other.Format, Format) && other.Slot == Slot && other.AlignedByteOffset == AlignedByteOffset; }