Crate rendy_memory

Source
Expand description

GPU memory management

Structs§

  • Coherent marker.
  • Full speed GPU access. Optimal for render targets and persistent resources. Avoid memory with host access.
  • Dedicated memory allocator that uses memory object per allocation requested.
  • Memory block allocated from DedicatedAllocator
  • GPU to CPU data flow with mapping. Used for copying data from Data memory to be read by the host. Host access is guaranteed.
  • CPU to GPU data flow with update commands. Used for dynamic buffer data, typically constant buffers. Host access is guaranteed. Prefers memory with fast GPU access.
  • No-fragmentation allocator. Suitable for any type of small allocations. Every freed block can be reused.
  • Memory block allocated from DynamicAllocator
  • Config for DynamicAllocator.
  • Heaps available on particular physical device.
  • Config for Heaps allocator.
  • Linear allocator that return memory from chunk sequentially. It keeps only number of bytes allocated from each chunk. Once chunk is exhausted it is placed into list. When all blocks allocated from head of that list are freed, head is freed as well.
  • Memory block allocated from LinearAllocator
  • Config for LinearAllocator.
  • Represents range of the memory mapped to the host. Provides methods for safer host access to the memory.
  • Value that contains either coherent marker or non-coherent marker.
  • Memory object wrapper. Contains size and properties of the memory.
  • Memory block allocated from Heaps.
  • Memory utilization of one heap.
  • Memory utilization of one type.
  • Memory utilization stats.
  • Non-coherent marker.
  • Total memory utilization.
  • CPU to GPU data flow with mapping. Used for staging data before copying to the Data memory. Host access is guaranteed.

Enums§

Traits§

  • Allocator trait implemented for various allocators.
  • Block that owns a Range of the Memory. Implementor must ensure that there can’t be any other blocks with overlapping range (either through type system or safety notes for unsafe functions). Provides access to safe memory range mapping.
  • Memory usage trait.
  • Trait for memory region suitable for host writes.