GpaStatus GpaInitialize(
    GpaInitializeFlags flags);


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.


Name Description
flags Flags used to initialize GPA. This should be a combination of GpaInitializeBits.

Return value

Return value Description
kGpaStatusOk GPA was destroyed.
kGpaStatusErrorGpaAlreadyInitialized GpaInitialize was already called.
kGpaStatusErrorInvalidParameter The flags parameter has an invalid value.
kGpaStatusErrorException Exception occurred.