Skip to main content

Module resource

Module resource 

Source
Expand description

GPU resource wrappers — first-class agpu types for every GPU object.

Each wrapper holds the underlying wgpu object plus metadata for agent discoverability (label, id, resource kind). Users interact with these types instead of raw wgpu handles. The .raw() escape hatch exposes the inner wgpu type for advanced use.

Structs§

GpuBindGroup
A bind group — a set of resources bound to a shader.
GpuBindGroupLayout
A bind group layout describing the shape of a bind group.
GpuBuffer
A GPU buffer — vertex, index, uniform, storage, or staging memory.
GpuComputePipeline
A GPU compute pipeline — a compiled compute shader program.
GpuPipelineLayout
A pipeline layout describing bind group layouts and push constants.
GpuQuerySet
A GPU query set — for occlusion queries or timestamp queries.
GpuRenderPipeline
A GPU render pipeline — vertex + fragment shaders, primitive state, blend mode, and depth/stencil configuration.
GpuSampler
A GPU sampler — controls how textures are filtered and addressed.
GpuShaderModule
A compiled GPU shader module (WGSL or SPIR-V).
GpuTexture
A GPU texture — 2D, 3D, or cube-map image data on the GPU.
GpuTextureView
A view into a GPU texture.

Enums§

ShaderSourceKind
How the shader was provided.