Enum MemoryType
- Namespace
- DotCompute.Abstractions.Memory
- Assembly
- DotCompute.Abstractions.dll
Specifies the type of memory allocation.
public enum MemoryType
Fields
Constant = 5Constant memory for read-only data.
Device = 1Device memory (e.g., GPU VRAM).
Host = 0Host system memory (RAM).
Managed = 7Managed memory with automatic migration.
Pinned = 3Pinned host memory for faster transfers.
Shared memory within a compute unit.
Texture = 6Texture memory optimized for spatial locality.
Unified = 2Unified memory accessible from both host and device.