tryCreate static method
Attempts to create a glFinish sampler profiler if supported.
Implementation
static GlFinishSamplerProfiler? tryCreate(dynamic gl, {int stride = 30}) {
try {
if (gl.gl?.glFinish == null) return null;
return GlFinishSamplerProfiler._(gl, stride);
} catch (_) {
return null;
}
}