Available on crate features
winit only.Expand description
Utilities for working with windows & surfaces.
To bundle a
winit::window::Window
with its
wgpu::Surface,
you’re looking for SurfaceWindow.
For an abstraction over WebGL’s retardedness having to provide a surface
before you can get a wgpu adapter, see DeferredContext.
Structs§
- Active
Surface Window - A borrowed form of
SurfaceWindowwhich guarantees that its surface exists & is configured, ready to be rendered to. - Deferred
Context - Defer the contstruction of the
RenderContextuntil a surface is constructed. - Surface
Config Options - Persistent configuration for surfaces, which may be destroyed & re-created.
Overrides defaults of
wgpu::SurfaceConfiguration. - Surface
Window - A combined
winit::window::Window&wgpu::Surface.
Enums§
- Build
Deferred Context Error - Error returned when waiting for a
RenderContextto be built. - Config
Surface Error - Error returned when configuring a surface or making a texture view for the surface.
- Create
Window Error - Error returned when trying to create a window.
- GetDeferred
Context Error - Error returned trying to get the
RenderContextfrom aDeferredContext.