Class CLMemEXTHostPtr

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class CLMemEXTHostPtr extends Struct<CLMemEXTHostPtr> implements NativeResource

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

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • ALLOCATION_TYPE

      public static final int ALLOCATION_TYPE
      The struct member offsets.
    • HOST_CACHE_POLICY

      public static final int HOST_CACHE_POLICY
      The struct member offsets.
  • Constructor Details

    • CLMemEXTHostPtr

      public CLMemEXTHostPtr(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.

  • Method Details