nn::gr::CTR Namespace

Description

The namespace of the CTR GPU register access library.

(This namespace can also be written without the ::CTR portion.)

Classes

nn::gr::CTR::BindSymbol Class for getting/setting information about symbols.
nn::gr::CTR::BindSymbolVSInput Class for getting/setting information about input register symbols of the vertex shader.
nn::gr::CTR::BindSymbolVSFloat Class for getting/setting information about floating point register symbols of the vertex shader.
nn::gr::CTR::BindSymbolVSInteger Class for getting/setting information about integer register symbols.
nn::gr::CTR::BindSymbolVSBool Class for getting or setting information about Boolean register symbols.
nn::gr::CTR::BindSymbolGSFloat Class for getting/setting information about floating point register symbols of the geometry shader.
nn::gr::CTR::BindSymbolGSBool Class for getting or setting information about Boolean register symbols.
nn::gr::CTR::Combiner Class for configuring combiner settings.
nn::gr::CTR::Fog Class for generating fog-related commands.
nn::gr::CTR::FragmentLight Class for configuring fragment lighting settings.
nn::gr::CTR::FrameBuffer Class for configuring framebuffer settings.
nn::gr::CTR::LookUpTable Class for loading lookup tables.
nn::gr::CTR::ProcedureTexture Class for generating procedural texture commands.
nn::gr::CTR::RenderState Class for setting the render state.
nn::gr::CTR::Scissor Class for generating scissor-related commands. Unlike glScissor, the color buffer size of the target drawing must be given.
nn::gr::CTR::Shader Class for setting the shader binary.
nn::gr::CTR::ShaderLite Class for setting the shader binary. This can reduce memory consumption, compared to the regular Shader class.
nn::gr::CTR::Texture Class for setting textures.
nn::gr::CTR::CommandBufferJumpHelper This class aids in the generation of a series of commands to jump to a different command buffer and then return to the original command buffer.
nn::gr::CTR::Vertex Class for making vertex buffer object-related settings.
nn::gr::CTR::Viewport Class for generating viewport-related commands. First assign values to each x, y, width, and height member, and generate a command using MakeCommand.

Enumerated Types

CommandBufferChannel Indicates the channel used to execute the command buffer.
PostVertexCacheEntryType Patterns for the number of post-vertex cache entries.

typedef Definitions

PicaDataVertexArrayType Vertex stream data type. Type is PicaDataVertexAttrType.
PicaDataLookUpTableType Lookup table type. Type is PicaDataFragLightSampler.
PicaDataFragLightTexture Type of fragment light texture. Type is PicaDataFragLightEnvTexture.
PicaDataFragLightLayerConfig Fragment light layer config type. Type is PicaDataFragLightEnvLayerConfig.
PicaDataFragLightBump Fragment light bump map type. Type is PicaDataFragLightEnvBump.
PicaDataLutInput Type representing LookUpTable to be input. Type is PicaDataFragLightEnvLutInput.
PicaDataLutScale Type representing LookUpTable scale. Type is PicaDataFragLightEnvLutScale.

Functions

AddDummyDataForCommandBuffer When you add a command of the specified size, the buffer size is adjusted to a multiple of 16.
CopyMtx34WithHeader Inverts the wHzyx order of a 3x4 matrix and makes a copy. (including header)
CopyMtx44WithHeader Inverts the wHzyx order of a 4x4 matrix and makes a copy. (including header)
MakeUniformCommandVS Generates a command for setting a 3x4 matrix in a vertex shader uniform.
MakeUniformCommandGS Generates a command for setting a 3x4 matrix in a geometry shader uniform.
FloatToUnsignedByte Converts float32 to u8.
FloatToUnsignedByteNoClamp Converts float32 to u8 without clamping.
Float32ToFloat16 Converts float32 to float16.
Float32ToFloat24 Converts float32 to float24.
Float32ToFloat20 Converts float32 to float20.
Float32ToFloat31 Converts float32 to float31.
Float32ToUnsignedFix24 Converts float32 to unsigned fixed24.
Float32ToUnsignedFix16 Converts float32 to unsigned fixed16.
Float32ToFix16 Converts float32 to signed fixed16.
Float32ToUnsignedFix12 Converts float32 to unsigned fixed12.
Float32ToFix12 Converts float32 to signed fixed12.
Float32ToFix12Fraction11 Converts float32 to fixed12 (11 fractional bits).
Float32ToFix13Fraction8 Converts float32 to fixed13 (8 fractional bits).
Float32ToFix13Fraction11 Converts float32 to fixed11 (8 fractional bits).
Float32ToUnsignedFix11 Converts float32 to unsigned fixed11.
Float32ToFix8Fraction7 Converts float32 to fixed8 (7 fractional bits).
PicaDataVertexAttrTypeToByteSize Finds the size in bytes based on the vertex array type.
MakeDisableAllCommand Generates commands to disable graphics features. Disables Shader, Vertex, fog/gas, FragmentLight, Texture, early depth test, clipping plane, RenderState, and RenderBlockMode.
MakeChannelKickCommand Adds a kick command to the specified channel.
MakeChannel0SubroutineCommand Adds a command set for jumping to a different command buffer (executed on Channel 0) and then returning control to the original command buffer.
MakeChannel1SubroutineCommand Adds a command set for jumping to a different command buffer (executed on Channel 1) and then returning control to the original command buffer.
MakeChannel0JumpCommand Adds a command set for jumping to another command buffer (executed on Channel 0).
MakeChannel1JumpCommand Adds a command set for jumping to another command buffer (executed on Channel 1).
MakePostVertexCacheEntryTypeCommand Changes the post-vertex cache to the specified number of entries.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL