Skip to main content

Module resources

Module resources 

Source
Expand description

GPU resources shared across the renderer.

  • buffer: strongly-typed helpers around wgpu::Buffer for uploads, copies, and mapping.
  • texture: 2D texture wrappers with ready-to-use views and samplers.
  • memory: tracking of the GPU memory of the buffers and textures.

Re-exports§

pub use buffer::*;
pub use memory::*;
pub use texture::*;

Modules§

buffer
GPU buffer helper utilities built on top of wgpu::Buffer.
memory
Tracking of the GPU memory of the Buffers and Textures (see GpuMemory).
texture
Texture creation and copy helpers built on wgpu::Texture.