SetShaderIndex

nn::gr::CTR::Shader::SetShaderIndex Member Function

Syntax

void SetShaderIndex(
     const s32 vtx_shader_index,
     const s32 geo_shader_index
);

Parameters

Name Description
in vtx_shader_index The index of the enabled vertex shader.
in geo_shader_index The index of the enabled geometry shader.

Return Values

None.

Description

Configures the index of the enabled shader. You must use this function after calling the SetupBinary function. For more information about the index to be specified, see the MAP file generated at link time by ctr_VertexShaderLinker32.exe. Geometry shaders can be disabled by specifying -1 for geo_shader_index. When switching between the use and non-use of geometry shaders, you need to reconfigure the rendering mode with the SetDrawMode function before generating a command.

Revision History

2010/10/25
Initial version.

CONFIDENTIAL