Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class NVCreateBuffer

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the nv_create_buffer extension.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, long
the size in bytes of the buffer memory object to be allocated
size
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, ByteBuffer
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.
host_ptr
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, ShortBuffer
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.
host_ptr
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, IntBuffer
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.
host_ptr
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, FloatBuffer
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.
host_ptr
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long
a valid OpenCL context used to create the buffer object
context
,
long
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 is MEM_READ_WRITE. One of:
MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
flags
,
long flags_NV, DoubleBuffer
a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.
host_ptr
,
IntBuffer
will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
errcode_ret
)

public static long
clCreateBufferNV(long context, long flags, long flags_NV, ByteBuffer host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

public static long
clCreateBufferNV(long context, long flags, long flags_NV, short[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

public static long
clCreateBufferNV(long context, long flags, long flags_NV, int[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

public static long
clCreateBufferNV(long context, long flags, long flags_NV, float[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

public static long
clCreateBufferNV(long context, long flags, long flags_NV, double[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

public static long
nclCreateBufferNV(long context, long flags, long flags_NV, long
the size in bytes of the buffer memory object to be allocated
size
,
long host_ptr, long errcode_ret)

Unsafe version of: CreateBufferNV

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_MEM_LOCATION_HOST_NVback to summary
public static final int CL_MEM_LOCATION_HOST_NV
CL_MEM_PINNED_NVback to summary
public static final int CL_MEM_PINNED_NV

Constructor Detail

NVCreateBufferback to summary
protected NVCreateBuffer()

Method Detail

clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, long size, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
size:long

the size in bytes of the buffer memory object to be allocated

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, ByteBuffer host_ptr, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
host_ptr:ByteBuffer

a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, ShortBuffer host_ptr, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
host_ptr:ShortBuffer

a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, IntBuffer host_ptr, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
host_ptr:IntBuffer

a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, FloatBuffer host_ptr, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
host_ptr:FloatBuffer

a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, DoubleBuffer host_ptr, IntBuffer errcode_ret)
Parameters
context:long

a valid OpenCL context used to create the buffer object

flags:long

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 is MEM_READ_WRITE. One of:

MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTR
MEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS
host_ptr:DoubleBuffer

a pointer to the buffer data that may already be allocated by the application. The size of the buffer that host_ptr points to must be ≥ size bytes.

errcode_ret:IntBuffer

will return an appropriate error code. If errcode_ret is NULL, no error code is returned.

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, ByteBuffer host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, short[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, int[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, float[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

Annotations
@NativeType:cl_mem
clCreateBufferNVback to summary
public static long clCreateBufferNV(long context, long flags, long flags_NV, double[] host_ptr, int[] errcode_ret)

Array version of: CreateBufferNV

Annotations
@NativeType:cl_mem
nclCreateBufferNVback to summary
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:long

the size in bytes of the buffer memory object to be allocated