java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLExtension
au.notzed.zcl.khr.GLSharing
public class GLSharing extends CLExtension
cl_khr_gl_sharing extension interface.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GLSharing.GLObjectInfo
-
Field Summary
Fields Modifier and Type Field Description static int
CL_CGL_SHAREGROUP_KHR
static int
CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR
static int
CL_DEVICES_FOR_GL_CONTEXT_KHR
static int
CL_EGL_DISPLAY_KHR
static int
CL_GL_CONTEXT_KHR
static int
CL_GL_MIPMAP_LEVEL
static int
CL_GL_NUM_SAMPLES
static int
CL_GL_OBJECT_BUFFER
static int
CL_GL_OBJECT_RENDERBUFFER
static int
CL_GL_OBJECT_TEXTURE_BUFFER
static int
CL_GL_OBJECT_TEXTURE1D
static int
CL_GL_OBJECT_TEXTURE1D_ARRAY
static int
CL_GL_OBJECT_TEXTURE2D
static int
CL_GL_OBJECT_TEXTURE2D_ARRAY
static int
CL_GL_OBJECT_TEXTURE3D
static int
CL_GL_TEXTURE_TARGET
static int
CL_GLX_DISPLAY_KHR
static int
CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR
static int
CL_WGL_HDC_KHR
static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description GLSharing(jdk.incubator.foreign.MemoryAddress p)
-
Method Summary
Modifier and Type Method Description static CLContextProperty
CGL_SHAREGROUP_KHR(long id)
CLBuffer
createFromGLBuffer(CLContext ctx, long flags, int bufobj)
CLImage
createFromGLRenderbuffer(CLContext cl_context, long flags, int renderbuffer)
CLImage
createFromGLTexture(CLContext ctx, long flags, int target, int miplevel, int texture)
static CLContextProperty
EGL_DISPLAY_KHR(long id)
void
enqueueAcquireGLObjects(CLCommandQueue queue, CLMemory[] mem_objects, CLEventList waiters, CLEventList events)
void
enqueueReleaseGLObjects(CLCommandQueue queue, CLMemory[] mem_objects, CLEventList waiters, CLEventList events)
int
getGLMIPMAPLevel(CLMemory mem)
GLSharing.GLObjectInfo
getGLObjectInfo(CLMemory mem)
int
getGLTExtureTarget(CLMemory mem)
java.lang.String
getName()
static CLContextProperty
GL_CONTEXT_KHR(long id)
static CLContextProperty
GLX_DISPLAY_KHR(long id)
static CLContextProperty
WGL_HDC_KHR(long id)
Methods inherited from class au.notzed.zcl.CLObject
getInfo, getInfo, getInfo, getInfoAny, getInfoAny, getInfoAny, getInfoAny, getInfoAnyV, getInfoByteV, getInfoByteV, getInfoInt, getInfoInt, getInfoInt, getInfoInt, getInfoJava, getInfoLong, getInfoLong, getInfoLong, getInfoLong, getInfoLongV, getInfoLongV, getInfoPropertyV, getInfoSizeT, getInfoSizeT, getInfoSizeT, getInfoSizeTA, getInfoString, getInfoString, getInfoString, getInfoString, release, release
Methods inherited from class api.Native
addr, addr, addr, debugDumpReachable, debugFlushAll, downcallHandle, downcallHandle, dumpSignature, freeUpcallStub, getAddr, getAddr, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, loadLibraries, parseStruct, parseUnion, release, release, release, resolve, setAddr, setAddr, setByte, setByte, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setShort, setShort, toAddrV, toAddrV, toAddrV, toByteV, toByteV, toLongV, toLongV, toObjectV, toObjectV, toString, upcallStub
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
CL_GL_OBJECT_BUFFER
public static final int CL_GL_OBJECT_BUFFER- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE2D
public static final int CL_GL_OBJECT_TEXTURE2D- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE3D
public static final int CL_GL_OBJECT_TEXTURE3D- See Also:
- Constant Field Values
-
CL_GL_OBJECT_RENDERBUFFER
public static final int CL_GL_OBJECT_RENDERBUFFER- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE2D_ARRAY
public static final int CL_GL_OBJECT_TEXTURE2D_ARRAY- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE1D
public static final int CL_GL_OBJECT_TEXTURE1D- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE1D_ARRAY
public static final int CL_GL_OBJECT_TEXTURE1D_ARRAY- See Also:
- Constant Field Values
-
CL_GL_OBJECT_TEXTURE_BUFFER
public static final int CL_GL_OBJECT_TEXTURE_BUFFER- See Also:
- Constant Field Values
-
CL_GL_TEXTURE_TARGET
public static final int CL_GL_TEXTURE_TARGET- See Also:
- Constant Field Values
-
CL_GL_MIPMAP_LEVEL
public static final int CL_GL_MIPMAP_LEVEL- See Also:
- Constant Field Values
-
CL_GL_NUM_SAMPLES
public static final int CL_GL_NUM_SAMPLES- See Also:
- Constant Field Values
-
CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR
public static final int CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR- See Also:
- Constant Field Values
-
CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR
public static final int CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR- See Also:
- Constant Field Values
-
CL_DEVICES_FOR_GL_CONTEXT_KHR
public static final int CL_DEVICES_FOR_GL_CONTEXT_KHR- See Also:
- Constant Field Values
-
CL_GL_CONTEXT_KHR
public static final int CL_GL_CONTEXT_KHR- See Also:
- Constant Field Values
-
CL_EGL_DISPLAY_KHR
public static final int CL_EGL_DISPLAY_KHR- See Also:
- Constant Field Values
-
CL_GLX_DISPLAY_KHR
public static final int CL_GLX_DISPLAY_KHR- See Also:
- Constant Field Values
-
CL_WGL_HDC_KHR
public static final int CL_WGL_HDC_KHR- See Also:
- Constant Field Values
-
CL_CGL_SHAREGROUP_KHR
public static final int CL_CGL_SHAREGROUP_KHR- See Also:
- Constant Field Values
-
-
Constructor Details
-
GLSharing
public GLSharing(jdk.incubator.foreign.MemoryAddress p)
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getName
in classCLExtension
-
GL_CONTEXT_KHR
-
EGL_DISPLAY_KHR
-
GLX_DISPLAY_KHR
-
WGL_HDC_KHR
-
CGL_SHAREGROUP_KHR
-
createFromGLBuffer
-
createFromGLTexture
-
createFromGLRenderbuffer
-
getGLObjectInfo
-
getGLTExtureTarget
-
getGLMIPMAPLevel
-
enqueueAcquireGLObjects
public void enqueueAcquireGLObjects(CLCommandQueue queue, CLMemory[] mem_objects, CLEventList waiters, CLEventList events) -
enqueueReleaseGLObjects
public void enqueueReleaseGLObjects(CLCommandQueue queue, CLMemory[] mem_objects, CLEventList waiters, CLEventList events)
-