Package org.lwjgl.opencl
Class NVCreateBuffer
- java.lang.Object
-
- org.lwjgl.opencl.NVCreateBuffer
-
public class NVCreateBuffer extends java.lang.ObjectNative bindings to the nv_create_buffer extension.
-
-
Field Summary
Fields Modifier and Type Field Description static intCL_MEM_LOCATION_HOST_NV
CL_MEM_PINNED_NV
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longclCreateBufferNV(long context, long flags, long flags_NV, double[] host_ptr, int[] errcode_ret)Array version of:CreateBufferNVstatic longclCreateBufferNV(long context, long flags, long flags_NV, float[] host_ptr, int[] errcode_ret)Array version of:CreateBufferNVstatic longclCreateBufferNV(long context, long flags, long flags_NV, int[] host_ptr, int[] errcode_ret)Array version of:CreateBufferNVstatic longclCreateBufferNV(long context, long flags, long flags_NV, long size, java.nio.IntBuffer errcode_ret)static longclCreateBufferNV(long context, long flags, long flags_NV, short[] host_ptr, int[] errcode_ret)Array version of:CreateBufferNVstatic longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, int[] errcode_ret)Array version of:CreateBufferNVstatic longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, java.nio.IntBuffer errcode_ret)static longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.DoubleBuffer host_ptr, java.nio.IntBuffer errcode_ret)static longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.FloatBuffer host_ptr, java.nio.IntBuffer errcode_ret)static longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.IntBuffer host_ptr, java.nio.IntBuffer errcode_ret)static longclCreateBufferNV(long context, long flags, long flags_NV, java.nio.ShortBuffer host_ptr, java.nio.IntBuffer errcode_ret)static longnclCreateBufferNV(long context, long flags, long flags_NV, long size, long host_ptr, long errcode_ret)Unsafe version of:CreateBufferNV
-
-
-
Field Detail
-
CL_MEM_LOCATION_HOST_NV
- See Also:
- Constant Field Values
-
CL_MEM_PINNED_NV
- See Also:
- Constant Field Values
-
-
Method Detail
-
nclCreateBufferNV
public static long nclCreateBufferNV(long context, long flags, long flags_NV, long size, long host_ptr, long errcode_ret)Unsafe version of:CreateBufferNV- Parameters:
size- the size in bytes of the buffer memory object to be allocated
-
clCreateBufferNV
public static long clCreateBufferNV(long context, long flags, long flags_NV, long size, @Nullable java.nio.IntBuffer errcode_ret)- Parameters:
context- a valid OpenCL context used to create the buffer objectflags- a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and how it will be used. If value specified for flags is 0, the default is used which isMEM_READ_WRITE. One of:MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTRMEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESSsize- the size in bytes of the buffer memory object to be allocatederrcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.
-
clCreateBufferNV
public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.ShortBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.IntBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.FloatBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.DoubleBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret)- Parameters:
context- a valid OpenCL context used to create the buffer objectflags- a bit-field that is used to specify allocation and usage information such as the memory area that should be used to allocate the buffer object and how it will be used. If value specified for flags is 0, the default is used which isMEM_READ_WRITE. One of:MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTRMEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESShost_ptr- a pointer to the buffer data that may already be allocated by the application. The size of the buffer thathost_ptrpoints to must be ≥sizebytes.errcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.
-
clCreateBufferNV
public static long clCreateBufferNV(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, short[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, int[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, float[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferNV(long context, long flags, long flags_NV, double[] host_ptr, @Nullable int[] errcode_ret)Array version of:CreateBufferNV
-
-