Examples of clCreateFromGLBuffer()


Examples of com.jogamp.opencl.llb.gl.CLGL.clCreateFromGLBuffer()

        checkBuffer(directBuffer, flags);
       
        CLGL clgli = (CLGL)getCL(context);
       
        int[] result = new int[1];
        long id = clgli.clCreateFromGLBuffer(context.ID, flags, glObject, result, 0);
        CLException.checkForError(result[0], "can not create CLGLObject from #"+glObject);

        return new CLGLBuffer<B>(context, directBuffer, id, glObject, size, flags);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.