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

Function CreatePBufferContext

tensorflow/lite/delegates/gpu/gl/egl_context.cc:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Status CreatePBufferContext(EGLDisplay display, EGLContext shared_context,
133 EglContext* egl_context) {
134 const EGLint attributes[] = {EGL_SURFACE_TYPE,
135 EGL_PBUFFER_BIT,
136 EGL_BLUE_SIZE,
137 8,
138 EGL_GREEN_SIZE,
139 8,
140 EGL_RED_SIZE,
141 8,
142 EGL_RENDERABLE_TYPE,
143 EGL_OPENGL_ES3_BIT_KHR,
144 EGL_NONE};
145 EGLConfig config;
146 RETURN_IF_ERROR(GetConfig(display, attributes, &config));
147 return CreateContext(display, shared_context, config, egl_context);
148}
149
150} // namespace gl
151} // namespace gpu

Callers 1

InitPBufferContextMethod · 0.85

Calls 2

GetConfigFunction · 0.85
CreateContextFunction · 0.85

Tested by

no test coverage detected