Package com.jogamp.opencl.llb

Examples of com.jogamp.opencl.llb.CLSamplerBinding


    }

    static CLSampler create(CLContext context, AddressingMode addrMode, FilteringMode filtMode, boolean normalizedCoords) {
        int[] error = new int[1];

        CLSamplerBinding binding = context.getPlatform().getSamplerBinding();
        long id = binding.clCreateSampler(context.ID, clBoolean(normalizedCoords), addrMode.MODE, filtMode.MODE, error, 0);

        checkForError(error[0], "can not create sampler");
        return new CLSampler(context, id, addrMode, filtMode, normalizedCoords);
    }
View Full Code Here

TOP

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

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.