Table of Contents

Class IndexBufferBinding

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Binding structure that specifies an Index Buffer for a Graphics Device.

[DataSerializer(typeof(IndexBufferBinding.Serializer))]
public class IndexBufferBinding : IEquatable<IndexBufferBinding>
Inheritance
object
IndexBufferBinding
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

indexBuffer Buffer

The Index Buffer to bind.

is32Bit bool

A value indicating if the indices are 16-bit (false), or 32-bit (true).

indexCount int

The number of indices in the Buffer to use.

indexOffset int

Exceptions

ArgumentNullException

indexBuffer is null.

Properties

Buffer

Gets the Index Buffer to bind.

public Buffer Buffer { get; }

Property Value

Buffer

Count

Gets the number of indices in the Buffer to use.

public int Count { get; }

Property Value

int

Is32Bit

Gets a value indicating if the Buffer contains 32-bit indices.

public bool Is32Bit { get; }

Property Value

bool

true if the Buffer contains 32-bit indices; false if the Buffer contains 16-bit indices.

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

int

Methods

Equals(IndexBufferBinding)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IndexBufferBinding other)

Parameters

other IndexBufferBinding

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

left IndexBufferBinding
right IndexBufferBinding

Returns

bool

operator !=(IndexBufferBinding, IndexBufferBinding)

public static bool operator !=(IndexBufferBinding left, IndexBufferBinding right)

Parameters

left IndexBufferBinding
right IndexBufferBinding

Returns

bool