gpu.cpp 0.1.0
 
Loading...
Searching...
No Matches
gpu::Kernel Struct Reference

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). More...

#include <gpu.h>

Public Attributes

std::unique_ptr< WGPUBuffer[]> buffers
 
std::unique_ptr< size_t[]> bufferSizes
 
size_t numBindings
 
Shape nWorkgroups
 
WGPUBindGroup bindGroup
 
WGPUComputePipeline computePipeline
 
WGPUCommandBuffer commandBuffer
 

Detailed Description

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).

Definition at line 382 of file gpu.h.

Member Data Documentation

◆ bindGroup

WGPUBindGroup gpu::Kernel::bindGroup

Definition at line 387 of file gpu.h.

◆ buffers

std::unique_ptr<WGPUBuffer[]> gpu::Kernel::buffers

Definition at line 383 of file gpu.h.

◆ bufferSizes

std::unique_ptr<size_t[]> gpu::Kernel::bufferSizes

Definition at line 384 of file gpu.h.

◆ commandBuffer

WGPUCommandBuffer gpu::Kernel::commandBuffer

Definition at line 389 of file gpu.h.

◆ computePipeline

WGPUComputePipeline gpu::Kernel::computePipeline

Definition at line 388 of file gpu.h.

◆ numBindings

size_t gpu::Kernel::numBindings

Definition at line 385 of file gpu.h.

◆ nWorkgroups

Shape gpu::Kernel::nWorkgroups

Definition at line 386 of file gpu.h.


The documentation for this struct was generated from the following file: