Class CLMemEXTHostPtr

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CLMemEXTHostPtr
    extends Struct
    implements NativeResource
    Accepted by the host_ptr argument of CreateBuffer, CreateImage2D and CreateImage3D.

    Member documentation

    • allocation_type – type of external memory allocation. Legal values will be defined in layered extensions.
    • host_cache_policy – host cache policy for this external memory allocation

    Layout

    
     struct cl_mem_ext_host_ptr {
         cl_uint allocation_type;
         cl_uint host_cache_policy;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ALLOCATION_TYPE, HOST_CACHE_POLICY

        The struct member offsets.
    • Constructor Detail

      • CLMemEXTHostPtr

        public CLMemEXTHostPtr​(java.nio.ByteBuffer container)
        Creates a CLMemEXTHostPtr instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.