Represents a GPU context, aggregates WebGPU API handles to interact with the GPU including the instance, adapter, device, and queue. More...
#include <gpu.h>
Public Member Functions | |
~Context () | |
Public Attributes | |
WGPUInstance | instance |
WGPUAdapter | adapter |
WGPUDevice | device |
WGPUQueue | queue |
TensorPool | pool = TensorPool(this) |
KernelPool | kernelPool = KernelPool(this) |
Represents a GPU context, aggregates WebGPU API handles to interact with the GPU including the instance, adapter, device, and queue.
Additionally contains a TensorPool and KernelPool for managing GPU resources to simplify lifetime management of GPU resources.
|
inline |
Definition at line 441 of file gpu.h.
KernelPool gpu::Context::kernelPool = KernelPool(this) |
TensorPool gpu::Context::pool = TensorPool(this) |