Skip to content

GpaInitialize

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

Syntax

GpaStatus GpaInitialize(
GpaInitializeFlags flags);

Description

Initializes the driver so that counters are exposed. This function must be called before the rendering context or device is created. In the case of DirectX 12 or Vulkan, this function must be called before a queue is created.

Parameters

NameDescription
flagsFlags used to initialize GPA. This should be a combination of GpaInitializeBits.

Return value

Return valueDescription
kGpaStatusOkGPA was destroyed.
kGpaStatusErrorGpaAlreadyInitializedGpaInitialize was already called.
kGpaStatusErrorInvalidParameterThe flags parameter has an invalid value.
kGpaStatusErrorExceptionException occurred.