Enum BufferAllocationFlags
- Namespace
- DotCompute.Abstractions.Ports
- Assembly
- DotCompute.Abstractions.dll
Flags for buffer allocation.
[Flags]
public enum BufferAllocationFlags
Fields
None = 0Default allocation.
Pinned = 4Pin memory for faster transfers.
Pooled = 1Allocate from memory pool if available.
ReadOnly = 8Read-only buffer.
Unified = 2Use unified/managed memory.
WriteOnly = 16Write-only buffer.
ZeroInitialize = 32Zero-initialize the buffer.