Re-exports§
pub use crevice;
pub use glam;
pub use image;
pub use wgpu;
pub use wgpu_glyph;
pub use wgpu::TextureViewDimension::*;
Structs§
- Arena
Allocation - Sub-buffer allocation returned from GrowingBufferArena.
- Arena
Render Pass - wgpu::RenderPipeline equivalent, but with more sensible lifetimes.
- Batch
Draw - Specifies state for a batched mesh draw.
- Batch
Render Pipeline - A simple 2D render pipeline designed for use with BatchRenderer.
- Batch
Renderer - BatchRenderer can draw many items with the same mesh and texture efficiently.
- Bind
Cache - Caches bind groups basd on a
u64
key. - Bind
Group Layout - Simplified bind group layout descriptor.
- Color
- Simple sRGB color type with an alpha channel.
- Context
- Stores GPU context handles, most notably the device and queue.
- Draw
Array - An efficient draw data buffer for use with batched renderers.
- Font
Brush - Font data that is readily available to be rendered.
- Frame
- Data that exists for the lifetime of a frame,
- Frame
Arena - Typed arenas for various GPU resources that need to live as long as the frame.
- GpuDraw
- Stores the same data as [Draw], but in a GPU-friendly manner.
- Growing
Buffer Arena - Buffer arena that can grow as needed.
- Image
Texture - Texture descriptor for image texture; i.e. textures initialized with pixel data.
- Mesh
- Mesh stored as vertex and index buffers.
- Mesh
Draw - Specifies state for a single mesh draw.
- Mesh
Render Pipeline - A simple 2D render pipeline designed for use with MeshRenderer.
- Mesh
Renderer - MeshRenderer is a simplified interface to drawing a mesh and texture with a specified “draw configuration” ([Draw]).
- Pipeline
Layout - Simplified pipeline layout descriptor.
- Rect
- 2D rectangle type.
- Render
Texture - Texture descriptor for rendering use.
- Sampler
- wgpu::Sampler equivalent with a unique ID for use with BindCache.
- Simple
Render Pass - Simplified render pass descriptor.
- Simple
Render Pipeline - Simplified render pipeline descriptor.
- Simple
Sampler - Simplified sampler descriptor.
- Sprite
Batch Color Draw - Draw data for a single instance in a non-textured batched sprite draw.
- Sprite
Batch Renderer - This is a version of BatchRenderer that is designed for rendering batches of sprites (textured or colored rectangle).
- Sprite
Batch Textured Draw - Draw data for a single instance in a textured batched sprite draw.
- Sprite
Renderer - This is a version of MeshRenderer that is designed for rendering sprites (textured or colored rectangles).
- Std430
GpuDraw - Text
Draw - Draw data for rendering text.
- Text
Renderer - Text rendering helper type which renders text using a FontBrush.
- Texture
- Texture wrapper type storing a texture and texture view.
- Vertex
- GPU vertex with position and UV.
- Vertex
Layout - Describes the memory layout of a vertex buffer.
Enums§
- Error
- An error that can occur in the library.
- Layout
Entry - Simplified bind group layout entry.
- Sprite
Batch - Sprite batch data, either in the form of texture sprites or colored sprites.
- Sprite
Content - The visual contents (texture or color) of a sprite.
- Vertex
Attribute - Simplified vertex attribute.
Traits§
- Slot3
Batch Renderer - Implemented by any batching renderer with a 3 slot design (storage, texture, sampler).
- Slot3
Mesh Renderer - Implemented by any non-batching renderer with a 3 slot design (uniform, texture, sampler).