SearchBindSymbol

nn::gr::CTR::Shader::SearchBindSymbol Member Function

Syntax

bool SearchBindSymbol(
     BindSymbol * symbol,
     const u8 symbol_index
) const;

Parameters

Name Description
out symbol The symbol corresponding to the index.
in symbol_index The index to be searched for.

Return Values

Returns true if the search target is found.

Description

Converts from an index (ranging from 0 to one less than the number of symbols) to symbol information for the symbol of the specified type. Indices of the type 0, 1, ... [number of symbols -1] are assigned in the order set by the pragma bind_symbol() function in shader code. You can search for the specified index and obtain the symbol information that was found. Call this function after setting the shader binary using the SetupBinary function.


CONFIDENTIAL