Class NVCreateBuffer

java.lang.Object
org.lwjgl.opencl.NVCreateBuffer

public class NVCreateBuffer extends Object
Native bindings to the nv_create_buffer extension.
  • Field Details

  • Method Details

    • 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 IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - the size in bytes of the buffer memory object to be allocated
      errcode_ret - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, ByteBuffer host_ptr, @Nullable IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - 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 - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, ShortBuffer host_ptr, @Nullable IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - 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 - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, IntBuffer host_ptr, @Nullable IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - 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 - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, FloatBuffer host_ptr, @Nullable IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - 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 - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, DoubleBuffer host_ptr, @Nullable IntBuffer errcode_ret)
      Parameters:
      context - a valid OpenCL context used to create the buffer object
      flags - 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 - 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 - will return an appropriate error code. If errcode_ret is NULL, no error code is returned.
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, ByteBuffer host_ptr, int @Nullable [] errcode_ret)
      Array version of: CreateBufferNV
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, short[] host_ptr, int @Nullable [] errcode_ret)
      Array version of: CreateBufferNV
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, int[] host_ptr, int @Nullable [] errcode_ret)
      Array version of: CreateBufferNV
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, float[] host_ptr, int @Nullable [] errcode_ret)
      Array version of: CreateBufferNV
    • clCreateBufferNV

      public static long clCreateBufferNV(long context, long flags, long flags_NV, double[] host_ptr, int @Nullable [] errcode_ret)
      Array version of: CreateBufferNV