| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_GL_OBJECT_TEXTURE1D
cl_gl_object_type |
| public static final int | CL_GL_OBJECT_TEXTURE1D_ARRAY
cl_gl_object_type |
| public static final int | CL_GL_OBJECT_TEXTURE_2D_ARRAY
cl_gl_object_type |
| public static final int | CL_GL_OBJECT_TEXTURE_BUFFER
cl_gl_object_type |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static long | Returns: a valid non-zero OpenCL image object anderrcode_ret is set to SUCCESS if the image object is created successfully. Otherwise, it returns a NULL
value with one of the following error values returned in errcode_ret:
a valid OpenCL context created from an OpenGL context context, long a bit-field that is used to specify usage information. One of: flags, int
defines the image type of texture_target, int texture. No reference to a bound GL texture object is made or implied by this parameter. One of:
the mipmap level to be used. Implementations may return miplevel, int INVALID_OPERATION for miplevel values > 0. If
texture_target is GL_TEXTURE_BUFFER, miplevel must be 0.the name of a GL 1D, 2D, 3D, 1D array, 2D array, cubemap, rectangle or buffer texture object. The texture object must be a complete texture as per
OpenGL rules on texture completeness. The texture format and dimensions defined by OpenGL for the specified texture, IntBuffer miplevel of the texture will be
used to create the OpenCL image memory object. Only GL texture objects with an internal format that maps to appropriate OpenCL image channel order
and data type may be used to create the OpenCL image memory object.will return an appropriate error code. If errcode_ret)errcode_ret is NULL, no error code is returned.Creates one of the following:
| ||||||||||||||||
| public static long | clCreateFromGLTexture(long context, long flags, int texture_target, int miplevel, int texture, int[] errcode_ret)
Array version of: | ||||||||||||||||
| public static long | nclCreateFromGLTexture(long context, long flags, int texture_target, int miplevel, int texture, long errcode_ret)
Unsafe version of: |
| CL_GL_OBJECT_TEXTURE1D | back to summary |
|---|---|
| public static final int CL_GL_OBJECT_TEXTURE1D cl_gl_object_type | |
| CL_GL_OBJECT_TEXTURE1D_ARRAY | back to summary |
|---|---|
| public static final int CL_GL_OBJECT_TEXTURE1D_ARRAY cl_gl_object_type | |
| CL_GL_OBJECT_TEXTURE_2D_ARRAY | back to summary |
|---|---|
| public static final int CL_GL_OBJECT_TEXTURE_2D_ARRAY cl_gl_object_type | |
| CL_GL_OBJECT_TEXTURE_BUFFER | back to summary |
|---|---|
| public static final int CL_GL_OBJECT_TEXTURE_BUFFER cl_gl_object_type | |
| CL12GL | back to summary |
|---|---|
| protected CL12GL() | |
| clCreateFromGLTexture | back to summary | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static long clCreateFromGLTexture(long context, long flags, int texture_target, int miplevel, int texture, IntBuffer errcode_ret) Creates one of the following:
If the state of a GL texture object is modified through the GL API (e.g. The
| |||||||||||||||||
| clCreateFromGLTexture | back to summary |
|---|---|
| public static long clCreateFromGLTexture(long context, long flags, int texture_target, int miplevel, int texture, int[] errcode_ret) Array version of:
| |
| nclCreateFromGLTexture | back to summary |
|---|---|
| public static long nclCreateFromGLTexture(long context, long flags, int texture_target, int miplevel, int texture, long errcode_ret) Unsafe version of: | |