GpaInitialize¶
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¶
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. |