Class NVCreateBuffer


  • public class NVCreateBuffer
    extends java.lang.Object
    Native bindings to the nv_create_buffer extension.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long clCreateBufferNV​(long context, long flags, long flags_NV, double[] host_ptr, int[] errcode_ret)
      Array version of: CreateBufferNV
      static long clCreateBufferNV​(long context, long flags, long flags_NV, float[] host_ptr, int[] errcode_ret)
      Array version of: CreateBufferNV
      static long clCreateBufferNV​(long context, long flags, long flags_NV, int[] host_ptr, int[] errcode_ret)
      Array version of: CreateBufferNV
      static long clCreateBufferNV​(long context, long flags, long flags_NV, long size, java.nio.IntBuffer errcode_ret)  
      static long clCreateBufferNV​(long context, long flags, long flags_NV, short[] host_ptr, int[] errcode_ret)
      Array version of: CreateBufferNV
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, int[] errcode_ret)
      Array version of: CreateBufferNV
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.ByteBuffer host_ptr, java.nio.IntBuffer errcode_ret)  
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.DoubleBuffer host_ptr, java.nio.IntBuffer errcode_ret)  
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.FloatBuffer host_ptr, java.nio.IntBuffer errcode_ret)  
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.IntBuffer host_ptr, java.nio.IntBuffer errcode_ret)  
      static long clCreateBufferNV​(long context, long flags, long flags_NV, java.nio.ShortBuffer host_ptr, java.nio.IntBuffer errcode_ret)  
      static long nclCreateBufferNV​(long context, long flags, long flags_NV, long size, long host_ptr, long errcode_ret)
      Unsafe version of: CreateBufferNV
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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,
                                            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 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,
                                            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