nn::gd::CTR::System::GetCommandBufferBaseAddress Member Functionstatic nnResult GetCommandBufferBaseAddress( RecordedPacketId * packetId, u32 ** commandBufferAddr );
| 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. |
| 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. |
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.
CONFIDENTIAL