Interface for a device.
Abstraction layer for memory, synchronization, and compute provided by different devices.
CreateBuffer | Create a new buffer for a number of elements with a given stride. |
CreateEvent | Creates a new event. |
DestroyBuffer | Destroy the buffer with the given ID. |
DestroyEvent | Destroy the event with the given ID. You should call this to free temporary resources associated with an event. Attempting to use the event after it has been destroyed, for example using IDeviceContext.Wait or IDeviceContext.IsCompleted will result in undefined behavior. |
Flush | Flush the device context. |
Initialize | Initialize. |
IsCompleted | Returns true if the asynchronous operation completed. |
ReadBuffer | Read contents of a buffer from the context. |
Wait | Wait for an asynchronous event. |
WriteBuffer | Write data into the memory buffer allocated by the context. |