Package com.jogamp.opencl.llb

Examples of com.jogamp.opencl.llb.CLBufferBinding.clCreateBuffer()


            throw new IllegalArgumentException("no host pointer defined");
        }

        CLBufferBinding binding = context.getPlatform().getBufferBinding();
        int[] result = new int[1];
        long id = binding.clCreateBuffer(context.ID, flags, size, null, result, 0);
        checkForError(result[0], "can not create cl buffer");

        return new CLBuffer(context, size, id, flags);
    }
View Full Code Here


        }

        CLBufferBinding binding = context.getPlatform().getBufferBinding();
        int[] result = new int[1];
        int size = Buffers.sizeOfBufferElem(directBuffer) * directBuffer.capacity();
        long id = binding.clCreateBuffer(context.ID, flags, size, host_ptr, result, 0);
        checkForError(result[0], "can not create cl buffer");
       
        return new CLBuffer<B>(context, directBuffer, size, id, 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.