UploadLookUpTableNative

nn::gd::CTR::Light::UploadLookUpTableNative Member Function

Syntax

nnResult UploadLookUpTableNative(
     LightLookUpTableUploadId lightLutID,
     u32 lutStartIndex,
     const u32 * data,
     u32 dataCount
);

Arguments

Name Description
in lightLutID Specifies the type of lookup table to be set.
in lutStartIndex Specifies the index of the lookup table to be set.
in data Specifies lookup table data.
in dataCount Specifies the number of data items in the lookup table.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultNullParameter NULL is specified in data.
ResultInvalidParameter 0 was specified in dataCount. Or, lightLutID was not LOOKUP_TABLE_UPLOAD_SP or LOOKUP_TABLE_UPLOAD_DA.
ResultOutOfRangeParameter The sum of lutStartIndex + dataCount specifies a value greater than or equal to 256 (the maximum size of a light lookup table.)

Description

Sets the lighting lookup table. The data used by this function has already been converted from floating point to fixed point. This function is an immediate function. (The immediate function directly generates commands and inserts them into the command buffer.)

Revision History

2011/02/17
Initial version.

CONFIDENTIAL