Skip to content

GpaGetSupportedSampleTypes

Syntax

GpaStatus GpaGetSupportedSampleTypes(GpaContextId context_id,
GpaContextSampleTypeFlags *sample_types);

Description

Gets a mask of the sample types supported by the specified context. A call to GpaCreateSession will fail if the requested sample types are not compatible with the context’s sample types.

Parameters

NameDescription
context_idUnique identifier of a previously-opened context.
sample_typesThe value that will be set to the the mask of the supported sample types upon successful execution. This will be a combination of GpaSampleBits.

Return value

Return valueDescription
kGpaStatusOkThe supported sample types were successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied sample_types parameter is NULL.The supplied context_id parameter is NULL.
kGpaStatusErrorContextNotOpenThe supplied context is not currently open.
kGpaStatusErrorContextNotFoundThe supplied context_id parameter was not recognized as a previously-opened context identifier.
kGpaStatusErrorFailedThe supported sample types could not be retrieved.
kGpaStatusErrorExceptionException occurred.