com.nativelibs4java.opencl.library.cl_image_format Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencl4java-jna Show documentation
Show all versions of opencl4java-jna Show documentation
OpenCL4Java is a thin Java wrapper around OpenCL's C API.
It uses JNA as its interop layer library, which means it works on all of the (many) JNA-supported platforms (see http://jna.dev.java.net/).
It is autogenerated by JNAerator (http://jnaerator.googlecode.com/), so updates to newer OpenCL specs are a matter of seconds.
Note that OpenCL4Java is used by JavaCL, an Object-Oriented API that presents OpenCL in a much more practical, powerful and idiomatic way to Java.
For more info, please visit http://code.google.com/p/nativelibs4java/wiki/OpenCL.
The newest version!
package com.nativelibs4java.opencl.library;
import com.ochafik.lang.jnaerator.runtime.Structure;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class cl_image_format extends Structure {
/// C type : cl_channel_order
public int image_channel_order;
/// C type : cl_channel_type
public int image_channel_data_type;
public cl_image_format() {
super();
}
/**
* @param image_channel_order C type : cl_channel_order
* @param image_channel_data_type C type : cl_channel_type
*/
public cl_image_format(int image_channel_order, int image_channel_data_type) {
super();
this.image_channel_order = image_channel_order;
this.image_channel_data_type = image_channel_data_type;
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected cl_image_format newInstance() { return new cl_image_format(); }
public static cl_image_format[] newArray(int arrayLength) {
return Structure.newArray(cl_image_format.class, arrayLength);
}
public static class ByReference extends cl_image_format implements Structure.ByReference {
};
public static class ByValue extends cl_image_format implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy