SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Device.Memory Namespace Reference

Classes

class  DeviceBuffer
 Represents a cache that can be shared with a hardware backend through DeviceSharedBuffer<TDeviceSharedBackend>.
A DeviceBuffer behaves like a normal Cache, but supports locking and shared‑memory synchronization for device kernels. More...
class  DeviceSharedBuffer< TDeviceSharedBackend >
 Represents a shared memory bridge between a DeviceBuffer and a hardware‑specific backend implementing IDeviceSharedBackend.
Manages the lifecycle of a hardware buffer, including creation, upload, download, and cleanup, depending on the configured SharedCacheType. More...
interface  IKernel< TIDeviceSharedBackend >
 Defines the interface for a compute kernel that operates on one or more DeviceSharedBuffer<TDeviceSharedBackend> instances.
A kernel represents a unit of computation that may run on different backends such as RAM, OpenCL, Vulkan, CUDA, or custom hardware. More...

Enumerations

enum  SharedCacheType : byte { ReadOnly , WriteOnly , ReadWrite }
 Specifies how a shared cache interacts with the hardware backend.
Determines the direction of data flow between the managed cache and the device‑specific hardware buffer. More...

Enumeration Type Documentation

◆ SharedCacheType

Specifies how a shared cache interacts with the hardware backend.
Determines the direction of data flow between the managed cache and the device‑specific hardware buffer.

Enumerator
ReadOnly 

Data flows from the cache to the hardware buffer only.
Hardware cannot write back into the cache.

WriteOnly 

Data flows from the hardware buffer into the cache only.
The cache does not upload its contents to the hardware.

ReadWrite 

Bidirectional synchronization between cache and hardware buffer.
The cache uploads its data to the hardware, and the hardware may write modified data back into the cache.

34 : byte {
40
46
53 }
@ ReadOnly
Data flows from the cache to the hardware buffer only. Hardware cannot write back into the cache.
Definition DeviceSharedBuffer.cs:39
@ WriteOnly
Data flows from the hardware buffer into the cache only. The cache does not upload its contents to ...
Definition DeviceSharedBuffer.cs:45
@ ReadWrite
Bidirectional synchronization between cache and hardware buffer. The cache uploads its data to the ...
Definition DeviceSharedBuffer.cs:52