Table of Contents

Enum BufferAllocationFlags

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

Flags for buffer allocation.

[Flags]
public enum BufferAllocationFlags

Fields

None = 0

Default allocation.

Pinned = 4

Pin memory for faster transfers.

Pooled = 1

Allocate from memory pool if available.

ReadOnly = 8

Read-only buffer.

Unified = 2

Use unified/managed memory.

WriteOnly = 16

Write-only buffer.

ZeroInitialize = 32

Zero-initialize the buffer.