nn::gd::CTR::System::GetCommandBufferBaseAddress Member Function

Syntax

static nnResult GetCommandBufferBaseAddress(
     RecordedPacketId * packetId,
     u32 ** commandBufferAddr
);

Parameters

Name Description
in packetId Specifies a saved packet object.
out commandBufferAddr Specifies the address storing the base address value of the command buffer being saved.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultNullParameter NULL was specified in an argument.
ResultSystemNoPacketRecorded The command list object has not been saved. Be sure to call StartRecordingPackets and StopRecordingPackets.
ResultSystemInvalidPacketId packetId is invalid. For the flag argument of System::StartRecordingPackets, specify either RECORD_COMMAND_LIST_COPY or RECORD_3D_COMMAND_BUFFER_FOR_JUMP.

Description

Gets the base address of the saved command buffer.

This function is enabled only when saved packet data is copied to a user buffer. (If System::StartRecordingPackets is executed by RecordingPacketUsage, it is not RECORD_COMMAND_LIST_NO_COPY. The base address of the command buffer is used to modify a saved command buffer. The command list object must be saved with the System::GetCommandBufferOffset function.

See Also

System::StartRecordingPackets
System::GetCommandBufferOffset

Revision History

2011/02/17
Initial version.

CONFIDENTIAL