Re-exports
Modules
This example is currently broken because I don’t understand the new egui textures since 0.17
Error types for core
Gpu abstraction
Need this for rendering to screen!
Macros
Structs
Represents the backends that wgpu will use.
RefCell<Buffer>
Features that are not guaranteed to be supported.
Convenience wrapper for a frame buffer you render to.
Frame
will automatically submit the finished encoder to the queue
and present the frame to the screen.
This was previously a repesentation of the swap chain
but since wgpu 0.11 it now wraps the surface texture
A struct that wraps over Rc<Gpu>
which can be passed around by clone.
Because this is a Rc
, it will automatically be freed when there are no
more references to it. It follows that any struct with a GpuHandle
will be
always be guaranteed a valid reference to the Gpu
.
Builder for GpuContext
.
By default this is initialized with sensible values for our use case.
The HW GPU context which contains all wgpu context info. This is meant as an easier and more ergonomic way to pass around wgpu info. You can manually construct this with fields but it is recommended to use the builder.
Utility struct for creating a BufferView
that auto unmaps when dropped.
A Viewport
is a rectangular area of that can be presented.
Export half crate
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16
a.k.a half
format.
Enums
Comparison function used for depth and stencil operations.
Underlying texture data format.
Constants
Traits
Automatic vertex format derivation Some general assumptions are made here:
Type Definitions
Generic error type for any error. Recommended to use with terminal errors only, which are expected to be displayed and not handled.