Examples of clGetMemObjectInfo()


Examples of com.jogamp.opencl.llb.CLMemObjBinding.clGetMemObjectInfo()

    }

    protected static long getSizeImpl(CLContext context, long id) {
        NativeSizeBuffer pb = NativeSizeBuffer.allocateDirect(1);
        CLMemObjBinding binding = context.getPlatform().getMemObjectBinding();
        int ret = binding.clGetMemObjectInfo(id, CL_MEM_SIZE, NativeSizeBuffer.elementSize(), pb.getBuffer(), null);
        checkForError(ret, "can not obtain buffer info");
        return pb.get();
    }

    protected static CL getCL(CLContext context) {
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.