MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsGlSharingSupported

Function IsGlSharingSupported

tensorflow/lite/delegates/gpu/cl/gl_interop.cc:117–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117bool IsGlSharingSupported(const CLDevice& device) {
118 return clCreateFromGLBuffer && clCreateFromGLTexture &&
119 device.SupportsExtension("cl_khr_gl_sharing");
120}
121
122AcquiredGlObjects::~AcquiredGlObjects() { Release({}, nullptr).IgnoreError(); }
123

Callers 1

InitMethod · 0.85

Calls 1

SupportsExtensionMethod · 0.80

Tested by

no test coverage detected