rprContextSetAOVindicesLookup

Calls a batch of rprContextSetAOVindexLookup.

rpr_status rprContextSetAOVindicesLookup(

rpr_context context,

rpr_int keyOffset,

rpr_float keyCount,

rpr_float const * colorRGBA);

Parameters

Parameter

Description

context

The context to set AOV indices lookup for.

keyOffset

Key number to start from.

keyCount

Number of Keys to set AOV lookup for (number in the color list).

colorRGBA

List of RGBA values of length keycount.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.

Example

rprContextSetAOVindicesLookup(ctx, 2, 3, table);

is equivalent to call:

rprContextSetAOVindexLookup(ctx, 2, table[0], table[1], table[2],  table[3]);
rprContextSetAOVindexLookup(ctx, 3, table[4], table[5], table[6],  table[7]);
rprContextSetAOVindexLookup(ctx, 4, table[8], table[9], table[10], table[11]);

Depending on the plug-in, rprContextSetAOVindicesLookup could be faster than calling several rprContextSetAOVindexLookup.