CLGLMemory

Constructors

this
this(CLGLContext ctx, cl_mem id)

Members

Functions

acquireFromGL
void acquireFromGL(CLCommandQueue queue, CLEvent[] wait_list = [], CLEvent* event = null)
acquired
bool acquired()
releaseToGL
void releaseToGL(CLCommandQueue queue, CLEvent[] wait_list = [], CLEvent* event = null)

Static functions

createFromGLBuffer
auto createFromGLBuffer(CLGLContext ctx, uint gl_id, Access access = Access.RW)
createFromGLRenderBuffer
auto createFromGLRenderBuffer(CLGLContext ctx, uint gl_id, Access access = Access.RW)
createFromGLTexture
auto createFromGLTexture(CLGLContext ctx, uint gl_id, GLenum target, Access access = Access.RW)

note: miplevel=0;

Inherited Members

From CLMemory

id
cl_mem id;
Type
enum Type
Flag
enum Flag
flags
const(Flag[]) flags()
createBuffer
CLMemory createBuffer(CLContext context, Flag[] flags, size_t size, void* host_ptr = null)
readTo
void readTo(CLCommandQueue queue, void[] buffer, size_t offset = 0, bool blocking = true, CLEvent[] wait_list = [], CLEvent* event = null)
read
void[] read(CLCommandQueue queue, size_t size, size_t offset = 0, bool blocking = true, CLEvent[] wait_list = [], CLEvent* event = null)
write
void write(CLCommandQueue queue, void[] buffer, size_t offset = 0, bool blocking = true, CLEvent[] wait_list = [], CLEvent* event = null)
MemoryMap
struct MemoryMap

Meta