Table of Contents

Class TextureArray

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an array of texture objects.

public class TextureArray : IDisposable, IEnumerable<int>, IEnumerable
Inheritance
TextureArray
Implements
Inherited Members

Constructors

TextureArray(int)

Initializes a new instance of the TextureArray class with the specified number of texture objects.

public TextureArray(int length)

Parameters

length int

The total number of texture objects in the array.

Properties

this[int]

Gets the texture object at the specified index.

public int this[int index] { get; }

Parameters

index int

The zero-based index of the texture object to get.

Property Value

int

The handle to the texture object at the specified index.

Length

Gets the total number of texture objects in the array.

public int Length { get; }

Property Value

int

Methods

Dispose()

Releases all resources used by the TextureArray class.

public void Dispose()

GetEnumerator()

Returns an enumerator that iterates through all texture objects in the array.

public IEnumerator<int> GetEnumerator()

Returns

IEnumerator<int>

An enumerator that can be used to iterate through the texture objects in the array.