Package com.jogamp.opencl.llb

Examples of com.jogamp.opencl.llb.CLMemObjBinding


            || (flags & CL_MEM_USE_HOST_PTR!= 0;
    }

    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();
    }
View Full Code Here

TOP

Related Classes of com.jogamp.opencl.llb.CLMemObjBinding

Copyright © 2018 www.massapicom. 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.