nn::gd::CTR::System::GetCommandBufferOffset Member Function

Syntax

static nnResult GetCommandBufferOffset(
     u32 * offset
);

Parameters

Name Description
out offset Stores the current command buffer offset value for the command list object being saved.

Return Values

Returns the result of the operation.
Value Description
Result::IsSuccess Process was successful.
ResultNullParameter NULL was specified in an argument.
ResultSystemInvalidPacketId The command list object is invalid or the saving the command list object has not started. Be sure to execute StartRecordingPackets.
ResultSystemNoPacketRecorded Saving of command list objects has not started. Run SystemStartRecordingPackets.

Description

Gets the current offset for the command buffer for which a command list object save has started.

offset matches the base address and 3D packet command (32 bits) at the current command buffer position. Packets must be saved so that the command buffer offset can be obtained appropriately from the specified packet.

System::GetCommandBufferBaseAddress

See Also

System::StartRecordingPackets

Revision History

2011/02/17
Initial version.

CONFIDENTIAL