com.nativelibs4java.opencl.library.cl_buffer_region 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.NativeSize;
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_buffer_region extends Structure {
public NativeSize origin;
public NativeSize size;
public cl_buffer_region() {
super();
}
public cl_buffer_region(NativeSize origin, NativeSize size) {
super();
this.origin = origin;
this.size = size;
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected cl_buffer_region newInstance() { return new cl_buffer_region(); }
public static cl_buffer_region[] newArray(int arrayLength) {
return Structure.newArray(cl_buffer_region.class, arrayLength);
}
public static class ByReference extends cl_buffer_region implements Structure.ByReference {
};
public static class ByValue extends cl_buffer_region implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy