Table of Contents

Enum BufferState

Namespace
DotCompute.Abstractions.Memory
Assembly
DotCompute.Abstractions.dll

Represents the current state of a memory buffer.

public enum BufferState

Fields

Allocated = 1

Buffer is allocated and ready for use.

DeviceAccess = 3

Buffer is currently being accessed by the device.

DeviceDirty = 10

Device has more recent data than host.

DeviceOnly = 8

Buffer is only accessible from device.

DeviceReady = 12

Buffer data is ready on the device.

DeviceValid = 14

Buffer data is valid and available on the device.

Disposed = 5

Buffer has been disposed.

HostAccess = 2

Buffer is currently being accessed by the host.

HostDirty = 9

Host has more recent data than device.

HostOnly = 7

Buffer is only accessible from host.

HostReady = 11

Buffer data is ready on the host.

Released = 13

Buffer has been released and its memory is available for reuse.

Synchronized = 6

Buffer is accessible from both host and device.

Transferring = 4

Buffer is being transferred between host and device.

Uninitialized = 0

Buffer is uninitialized.