nn::gd::CTR::Light::UploadLookUpTableFloat Member FunctionnnResult UploadLookUpTableFloat( LightLookUpTableUploadId lightLutID, u32 lutStartIndex, const f32 * valueData, const f32 * deltaData, u32 dataCount );
| 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 | valueData | Specifies lookup table data. |
| in | deltaData | Specifies lookup table delta data. |
| in | dataCount | Specifies the number of data items in the lookup table. |
| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultNullParameter |
NULL was specified for dataValue or dataDelta. |
ResultInvalidParameter |
0 was specified in dataCount. Or, the 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.) |
Sets the lighting lookup table. The floating point value you specify is converted into fixed point data by this function and then sent to the GPU. This function is an immediate function. (The immediate function directly generates commands and inserts them into the command buffer.)
This function first uses LightingStage::Helper::ConvertLookUpTableDataFloatToNative to convert from a float to the specified integer value.
CONFIDENTIAL