Package org.lwjgl.opencl.api

Examples of org.lwjgl.opencl.api.CLImageFormat


      clGetSupportedImageFormats(context, flags, image_type, formatBuffer, null);

      final List<CLImageFormat> formats = new ArrayList<CLImageFormat>(num_image_formats);
      for ( int i = 0; i < num_image_formats; i++ ) {
        final int offset = num_image_formats * CLImageFormat.STRUCT_SIZE;
        final CLImageFormat format = new CLImageFormat(
          formatBuffer.getInt(offset),
          formatBuffer.getInt(offset + 4)
        );
        if ( filter == null || filter.accept(format) )
          formats.add(format);
View Full Code Here


      final ByteBuffer format = APIUtil.getBufferByte(2 * 4);

      clGetImageInfo(mem, CL_IMAGE_FORMAT, format, null);

      return new CLImageFormat(format.getInt(0), format.getInt(4));
    }
View Full Code Here

      clGetSupportedImageFormats(context, flags, image_type, formatBuffer, null);

      final List<CLImageFormat> formats = new ArrayList<CLImageFormat>(num_image_formats);
      for ( int i = 0; i < num_image_formats; i++ ) {
        final int offset = num_image_formats * CLImageFormat.STRUCT_SIZE;
        final CLImageFormat format = new CLImageFormat(
          formatBuffer.getInt(offset),
          formatBuffer.getInt(offset + 4)
        );
        if ( filter == null || filter.accept(format) )
          formats.add(format);
View Full Code Here

      final ByteBuffer format = APIUtil.getBufferByte(2 * 4);

      clGetImageInfo(mem, CL_IMAGE_FORMAT, format, null);

      return new CLImageFormat(format.getInt(0), format.getInt(4));
    }
View Full Code Here

TOP

Related Classes of org.lwjgl.opencl.api.CLImageFormat

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.