GCKernelLibrary class.
More...
#include <GCKernelLibrary.h>
GCKernelLibrary class.
Definition at line 187 of file GCKernelLibrary.h.
Prevent instances of this class from being copied.
GCKernel create_kernel |
( |
const std::string & |
shader_name, |
|
|
const StringSet & |
build_options_set = {} |
|
) |
| const |
Creates a kernel from the kernel library.
- Parameters
-
[in] | shader_name | Shader name. |
[in] | build_options_set | Shader build options as a set. |
- Returns
- The created kernel.
void init |
( |
std::string |
shader_path = "./" , |
|
|
EGLDisplay |
dpy = EGL_NO_DISPLAY , |
|
|
EGLContext |
ctx = EGL_NO_CONTEXT |
|
) |
| |
|
inline |
Initialises the kernel library.
- Parameters
-
[in] | shader_path | (Optional) Path of the directory from which shader sources are loaded. |
[in] | dpy | (Optional) EGLdisplay set by external application. |
[in] | ctx | (Optional) EGLContext set by external application. |
Definition at line 212 of file GCKernelLibrary.h.
214 _shader_path = std::move(shader_path);
219 eglMakeCurrent(_display, EGL_NO_SURFACE, EGL_NO_SURFACE, _context);
void setup_dummy_fbo()
Setup a dummy fbo to workaround an issue on Galaxy S8.
Load serialized binary with all the programs.
Prevent instances of this class from being copied.
Serializes and saves programs to a binary.
void set_context |
( |
EGLDisplay |
dpy, |
|
|
EGLContext |
ctx |
|
) |
| |
|
inline |
Sets display and context to create kernel.
- Parameters
-
[in] | dpy | EGLdisplay set by external application. |
[in] | ctx | EGLContext set by external application. |
Definition at line 236 of file GCKernelLibrary.h.
References arm_compute::create_kernel().
241 eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, ctx);
void setup_dummy_fbo()
Setup a dummy fbo to workaround an issue on Galaxy S8.
void set_shader_path |
( |
const std::string & |
shader_path | ) |
|
|
inline |
Sets the path that the shaders reside in.
- Parameters
-
[in] | shader_path | Path of the shader. |
Definition at line 227 of file GCKernelLibrary.h.
229 _shader_path = shader_path;
Setup a dummy fbo to workaround an issue on Galaxy S8.
The documentation for this class was generated from the following file: