Class IndexBufferBinding
Binding structure that specifies an Index Buffer for a Graphics Device.
[DataSerializer(typeof(IndexBufferBinding.Serializer))]
public class IndexBufferBinding : IEquatable<IndexBufferBinding>
- Inheritance
-
objectIndexBufferBinding
- Implements
- Extension Methods
Constructors
IndexBufferBinding(Buffer, bool, int, int)
Initializes a new instance of the IndexBufferBinding class.
public IndexBufferBinding(Buffer indexBuffer, bool is32Bit, int indexCount, int indexOffset = 0)
Parameters
indexBufferBufferThe Index Buffer to bind.
is32BitboolA value indicating if the indices are 16-bit (false), or 32-bit (true).
indexCountintThe number of indices in the Buffer to use.
indexOffsetint
Exceptions
- ArgumentNullException
indexBufferis null.
Properties
Buffer
Gets the Index Buffer to bind.
public Buffer Buffer { get; }
Property Value
Count
Gets the number of indices in the Buffer to use.
public int Count { get; }
Property Value
Is32Bit
Gets a value indicating if the Buffer contains 32-bit indices.
public bool Is32Bit { get; }
Property Value
Offset
Gets the offset (in number of indices) from the beginning of the Buffer to the first index to use.
public int Offset { get; }
Property Value
Methods
Equals(IndexBufferBinding)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IndexBufferBinding other)
Parameters
otherIndexBufferBindingAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(IndexBufferBinding, IndexBufferBinding)
public static bool operator ==(IndexBufferBinding left, IndexBufferBinding right)
Parameters
leftIndexBufferBindingrightIndexBufferBinding
Returns
operator !=(IndexBufferBinding, IndexBufferBinding)
public static bool operator !=(IndexBufferBinding left, IndexBufferBinding right)
Parameters
leftIndexBufferBindingrightIndexBufferBinding