29package com.jogamp.opencl.gl;
31import com.jogamp.opencl.llb.CL;
32import com.jogamp.opencl.CLContext;
33import com.jogamp.opencl.CLException;
34import com.jogamp.opencl.CLImage3d;
35import com.jogamp.opencl.CLImageFormat;
36import com.jogamp.opencl.llb.impl.CLImageFormatImpl;
38import java.nio.Buffer;
40import com.jogamp.opengl.GLContext;
57 private CLGLTexture3d(
final CLContext context,
final B directBuffer,
final CLImageFormat format,
final CLImageInfoAccessor accessor,
final int target,
final int mipLevel,
final int width,
final int height,
final int depth,
final long id,
final int glid,
final int flags) {
61 this.mipMapLevel = mipLevel;
64 static <B extends Buffer>
CLGLTexture3d<B> createFromGLTexture3d(
final CLContext context,
final B directBuffer,
final int flags,
final int target,
final int mipLevel,
final int texture) {
68 final CL cl = getCL(context);
69 final int[] result =
new int[1];
74 final CLImageInfoAccessor accessor =
new CLImageInfoAccessor(cl,
id);
83 return new CLGLTexture3d<B>(context, directBuffer,
format, accessor,
target, mipLevel,
width,
height,
depth,
id, texture, flags);
CLContext is responsible for managing objects such as command-queues, memory, program and kernel obje...
Main Exception type for runtime OpenCL errors and failed function calls (e.g.
static void checkForError(final int status, final String message)
Throws a CLException when status != CL_SUCCESS.
static CLImageFormat createUninitializedImageFormat()
final long ID
The OpenCL object handle.
Shared buffer between OpenGL and OpenCL contexts.
OpenCL Context supporting JOGL-JOCL interoperablity.
GLContext getGLContext()
Returns the OpenGL context this context was shared with.
CLGLContext getContext()
Returns the context for this OpenCL object.
3D OpenCL image representing an 3D OpenGL texture.
CLGLContext getContext()
Returns the shared CLGLContext.
int getGLObjectID()
Returns the OpenGL object id of this shared object.
GLContext getGLContext()
Returns the OpenGL context of this shared object.
final int GLID
The OpenGL object handle.
GLObjectType getGLObjectType()
Returns the OpenGL buffer type of this shared object.
Java bindings to OpenCL, the Open Computing Language.
static final int CL_IMAGE_FORMAT
Define "CL_IMAGE_FORMAT" with expression '0x1110', CType: int.
static final int CL_IMAGE_DEPTH
Define "CL_IMAGE_DEPTH" with expression '0x1116', CType: int.
static final int CL_IMAGE_HEIGHT
Define "CL_IMAGE_HEIGHT" with expression '0x1115', CType: int.
long clCreateFromGLTexture3D(long context, long flags, int target, int miplevel, int texture, IntBuffer errcode_ret)
Interface to C language function: cl_mem {@native clCreateFromGLTexture3D}(cl_context context,...
static final int CL_IMAGE_WIDTH
Define "CL_IMAGE_WIDTH" with expression '0x1114', CType: int.