public static CLEvent clCreateEventFromGLsyncKHR(CLContext context, GLSync sync, IntBuffer errcode_ret) { long function_pointer = CLCapabilities.clCreateEventFromGLsyncKHR; BufferChecks.checkFunctionAddress(function_pointer); if (errcode_ret != null) BufferChecks.checkBuffer(errcode_ret, 1); CLEvent __result = new CLEvent(nclCreateEventFromGLsyncKHR(context.getPointer(), sync.getPointer(), MemoryUtil.getAddressSafe(errcode_ret), function_pointer), context); return __result; }
@Check(value = "errcode_ret", canBeNull = true) @PointerWrapper(value = "cl_event", params = "context") CLEvent clCreateEventFromGLsyncKHR(@PointerWrapper("cl_context") CLContext context, @PointerWrapper("cl_GLsync") GLSync sync, @OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@PointerWrapper("GLsync") GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
@GLenum int glClientWaitSync(@PointerWrapper("GLsync") GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@StripPostfix("values") void glGetSynciv(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize, @OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length, @OutParameter IntBuffer values);
@Alternate("glGetSynciv") @GLreturn("values") @StripPostfix(value = "values", postfix = "v") void glGetSynciv2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLsizei @Constant("0L") IntBuffer length, @OutParameter IntBuffer values);
@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync glFenceSyncAPPLE(@GLenum int condition, @GLbitfield int flags);
@GLenum int glClientWaitSyncAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync, @GLbitfield int flags, @GLuint64 long timeout);
@StripPostfix("values") void glGetSyncivAPPLE(@PointerWrapper("GLsync") org.lwjgl.opengl.GLSync sync, @GLenum int pname, @AutoSize("values") @GLsizei int bufSize, @OutParameter @GLsizei @Check(value = "1", canBeNull = true) IntBuffer length, @OutParameter IntBuffer values);
@Alternate("glGetSyncivAPPLE") @GLreturn("values") @StripPostfix(value = "values", postfix = "v") void glGetSyncivAPPLE2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLsizei @Constant("0L") IntBuffer length, @OutParameter IntBuffer values);
static void waitOnFence(final GLSync[] fences, final int index) { glWaitSync(fences[index], 0, GL_TIMEOUT_IGNORED); glDeleteSync(fences[index]); fences[index] = null; }
public TextureStreamPBORange(final StreamHandler handler, final int transfersToBuffer) { super(handler, transfersToBuffer); fences = new GLSync[this.transfersToBuffer]; }
RenderStreamPBOAMD(final StreamHandler handler, final int samples, final int transfersToBuffer) { super(handler, samples, transfersToBuffer, ReadbackType.READ_PIXELS); fences = new GLSync[this.transfersToBuffer]; }