MakeShaderCommand

nn::gr::CTR::Shader::MakeShaderCommand Member Function

Syntax

bit32 * MakeShaderCommand(
     bit32 * command,
     const bool isMakePrepareCommand = true
) const;

Parameters

Name Description
in command The start address for the write destination of the rendering command.
in isMakePrepareCommand Generates the command for switching the mode for using or not using the geometry shader.

Return Values

Returns the address that follows the end of the stored rendering command.

Description

Generates the minimum commands necessary for switching the shader image within the shader binary. This function must be called after calling the MakeFullCommand function and sending a command. In addition, when switching the mode for using or not using the geometry shader with the SetShaderIndex function, the isMakePrepareCommand argument must be set to true.

Revision History

2010/10/25
Initial version.

CONFIDENTIAL