Home -> IStateContainer -> BindResourceArray

Description

The BindResourceArray method sets up a binding to either an IDataArray or ITexelArray object.

ImportantImportant

In order to create or bind to a resource array, the ResourceArrays feature must be supported on the IGraphicsDevice, and activated when the CreateRenderer method is called.

Usage

void BindResourceArray(ResourceArrayId resourceArrayId, IDataArray* resourceBuffer, bool resetCounter = true);
void BindResourceArray(ResourceArrayId resourceArrayId, ITexelArray* resourceBuffer);

Argument list

resourceArrayId [ResourceArrayId]
The ResourceArrayId of the resource array to bind
resourceBuffer [IDataArray*]
The IDataArray to bind
resourceBuffer [ITexelArray*]
The ITexelArray to bind
resetCounter [bool]
When binding an IDataArray with an attached counter, specifies whether the counter should be reset when this binding is performed.

See also