Here is a list of all namespaces with brief descriptions:
[detail level 12]
▼Ngpu | |
CArray | Represents a buffer of values on the GPU |
CBindings | Represents an ordered collection of WGPUBuffers (wrapped as tensors, non-overlapping views, or arrays) for the purpose of binding them to a kernel operation to make them accessible to the GPU kernel |
CCallbackData | Used for on-done callback data for asynchronous operations sduch as kernel launching |
CContext | Represents a GPU context, aggregates WebGPU API handles to interact with the GPU including the instance, adapter, device, and queue |
CCopyData | Staging buffer and callback data for copying data between the GPU and CPU |
CKernel | Represents handles + metadata for a reusable kernel on the GPU. The struct members can be divided into "consumed upon dispatch" (commandBuffer) and reusable ahead-of-time setup (all other members) |
CKernelCode | KernelCode is the representation of WGSL GPU code with template substitutions applied. It is a type around the code string with additional metadata for workgroup size and precision since they are specified in the WGSL code. Additionally, label and entryPoint are used by createKernel() to specify the label and entry point of the kernel |
CKernelPool | A pool of kernels to manage GPU resources. For simple use cases this is instantiated as a member in the Context struct although it's possible to have multiple resource pools of kernels in more complex scenarios |
CLogger | Logger struct for logging messages. stream: The stream to log to. buffer: A buffer to store the formatted message. level: The log level to log messages at |
CNoParam | NoParam is a no-op type used to indicate that a kernel does not have any parameters |
CShape | Represents the shape of a tensor |
CTensor | Represents a tensor on the GPU, which is a buffer of values with a shape |
CTensorPool | Represents a pool of tensors to manage GPU resources. The pool is responsible for managing the lifetime of the tensors and freeing them when the pool is destroyed |
CTensorView | Represents a non-owning view into a tensor specifying an offset and a subspan. This is useful for specifying a slice of a tensor on the GPU without copying the data |