Interface GPUMemory<T>

All Superinterfaces:
Comparable<GPUMemory<T>>
All Known Subinterfaces:
MemoryBlock
All Known Implementing Classes:
GPUMemoryPool.InternalMemory

public interface GPUMemory<T> extends Comparable<GPUMemory<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The corresponding offset on GPU object memory, without reserved space of memory pool.
    default int
     
    default boolean
    The memory as nullptr when true.
    default T
     
    int
     
    long
    The corresponding length on GPU object memory.
  • Method Details

    • reference

      int reference()
    • address

      long address()
      The corresponding offset on GPU object memory, without reserved space of memory pool.
    • size

      long size()
      The corresponding length on GPU object memory.
    • meta

      default T meta()
    • is_free

      default boolean is_free()
      The memory as nullptr when true.
    • compareTo

      default int compareTo(@NotNull GPUMemory<T> o)
      Specified by:
      compareTo in interface Comparable<T>