Cogl.has_feature
function has_feature(context: Cogl.Context, feature: Cogl.FeatureID): Cogl.Bool { // Gjs wrapper for cogl_has_feature() }
Checks if a given feature is currently available
Cogl does not aim to be a lowest common denominator API, it aims to expose all the interesting features of GPUs to application which means applications have some responsibility to explicitly check that certain features are available before depending on them.
Since 1.10
- context
A Cogl.Context pointer
- feature
- Returns
true if the feature is currently supported or false if not.