Skip to content

GpaEndCommandList

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

Syntax

GpaStatus GpaEndCommandList(
GpaCommandListId command_list_id);

Description

Ends command list for sampling. You will be unable to create samples on the specified command list after GpaEndCommandList is called. For DirectX 12, GpaEndCommandList should be called before the application calls Close on the underlying command list. For Vulkan, it should be called before the application calls vkEndCommandBuffer on the underlying command buffer.

Parameters

NameDescription
command_list_idUnique identifier of a previously-created command list.

Return value

Return valueDescription
kGpaStatusOkThe command list was successfully ended.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied command_list_id parameter is NULL.
kGpaStatusErrorCommandListNotFoundThe supplied command_list_id parameter was not recognized as a previously-created command list identifier.
GpaStatusErrorCommandListAlreadyEndedThe supplied command list has already been ended.
kGpaStatusErrorFailedThe command list could not be ended.
kGpaStatusErrorExceptionException occurred.