Module context

Source
Expand description

Rendering context initialization

This module contains Context initialization and frame management. This module provides the setup and management of rendering targets, frames, and surface configurations.

Structs§

Context
Contains the adapter, device, queue, RenderTarget and configuration.
Frame
Represents the current frame of a render target.
FrameTextureView
A thin wrapper over [wgpu::TextureView] returned by Frame::view.
RenderTarget
Represents a render target that can either be a surface or a texture. It will be a surface if the context was created with a window or canvas, and a texture if the context is headless.
WgpuRuntime
A slab allocation runtime that creates and updates [wgpu::Buffer]s.

Enums§

ContextError
Represents errors that can occur within the rendering context.