Enum BufferState
- Namespace
- DotCompute.Abstractions.Memory
- Assembly
- DotCompute.Abstractions.dll
Represents the current state of a memory buffer.
public enum BufferState
Fields
Allocated = 1Buffer is allocated and ready for use.
DeviceAccess = 3Buffer is currently being accessed by the device.
DeviceDirty = 10Device has more recent data than host.
DeviceOnly = 8Buffer is only accessible from device.
DeviceReady = 12Buffer data is ready on the device.
DeviceValid = 14Buffer data is valid and available on the device.
Disposed = 5Buffer has been disposed.
HostAccess = 2Buffer is currently being accessed by the host.
HostDirty = 9Host has more recent data than device.
HostOnly = 7Buffer is only accessible from host.
HostReady = 11Buffer data is ready on the host.
Released = 13Buffer has been released and its memory is available for reuse.
Synchronized = 6Buffer is accessible from both host and device.
Transferring = 4Buffer is being transferred between host and device.
Uninitialized = 0Buffer is uninitialized.