Skip to content

GpaContinueSampleOnCommandList

Copyright (c) 2018-2024 Advanced Micro Devices, Inc. All rights reserved.

Syntax

GpaStatus GpaContinueSampleOnCommandList(
GpaUInt32 src_sample_id,
GpaCommandListId primary_command_list_id);

Description

Continues a sample from one primary command list on to another primary command list. This function is only supported for DirectX 12 and Vulkan. Normally samples must be started and ended on the same command list. Using this function, samples can be started on one primary command list and continued/ended on another primary command list, allowing a single sample to span more than one command list.

Parameters

NameDescription
src_sample_idThe sample id of the sample being continued on a different command list.
primary_command_list_idUnique identifier of a previously-created primary command list on which the sample is continuing.

Return value

Return valueDescription
kGpaStatusOkThe sample was successfully continued on the specified command list.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied primary_command_list_id parameter is NULL.
kGpaStatusErrorCommandListNotFoundThe supplied primary_command_list_id parameter was not recognized as a previously-created command list identifier.
kGpaStatusErrorSampleNotFoundThe specified sample was not found.
kGpaStatusErrorApiNotSupportedThis function is not supported for the current API. Only DirectX 12 and Vulkan support this API.
kGpaStatusErrorFailedThe sample could not be continued on the specified command list.
kGpaStatusErrorExceptionException occurred.