Crate e2

Source

Re-exports§

pub use crevice;
pub use glam;
pub use image;
pub use wgpu;
pub use wgpu_glyph;
pub use wgpu::TextureViewDimension::*;

Structs§

ArenaAllocation
Sub-buffer allocation returned from GrowingBufferArena.
ArenaRenderPass
wgpu::RenderPipeline equivalent, but with more sensible lifetimes.
BatchDraw
Specifies state for a batched mesh draw.
BatchRenderPipeline
A simple 2D render pipeline designed for use with BatchRenderer.
BatchRenderer
BatchRenderer can draw many items with the same mesh and texture efficiently.
BindCache
Caches bind groups basd on a u64 key.
BindGroupLayout
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.
DrawArray
An efficient draw data buffer for use with batched renderers.
FontBrush
Font data that is readily available to be rendered.
Frame
Data that exists for the lifetime of a frame,
FrameArena
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.
GrowingBufferArena
Buffer arena that can grow as needed.
ImageTexture
Texture descriptor for image texture; i.e. textures initialized with pixel data.
Mesh
Mesh stored as vertex and index buffers.
MeshDraw
Specifies state for a single mesh draw.
MeshRenderPipeline
A simple 2D render pipeline designed for use with MeshRenderer.
MeshRenderer
MeshRenderer is a simplified interface to drawing a mesh and texture with a specified “draw configuration” ([Draw]).
PipelineLayout
Simplified pipeline layout descriptor.
Rect
2D rectangle type.
RenderTexture
Texture descriptor for rendering use.
Sampler
wgpu::Sampler equivalent with a unique ID for use with BindCache.
SimpleRenderPass
Simplified render pass descriptor.
SimpleRenderPipeline
Simplified render pipeline descriptor.
SimpleSampler
Simplified sampler descriptor.
SpriteBatchColorDraw
Draw data for a single instance in a non-textured batched sprite draw.
SpriteBatchRenderer
This is a version of BatchRenderer that is designed for rendering batches of sprites (textured or colored rectangle).
SpriteBatchTexturedDraw
Draw data for a single instance in a textured batched sprite draw.
SpriteRenderer
This is a version of MeshRenderer that is designed for rendering sprites (textured or colored rectangles).
Std430GpuDraw
TextDraw
Draw data for rendering text.
TextRenderer
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.
VertexLayout
Describes the memory layout of a vertex buffer.

Enums§

Error
An error that can occur in the library.
LayoutEntry
Simplified bind group layout entry.
SpriteBatch
Sprite batch data, either in the form of texture sprites or colored sprites.
SpriteContent
The visual contents (texture or color) of a sprite.
VertexAttribute
Simplified vertex attribute.

Traits§

Slot3BatchRenderer
Implemented by any batching renderer with a 3 slot design (storage, texture, sampler).
Slot3MeshRenderer
Implemented by any non-batching renderer with a 3 slot design (uniform, texture, sampler).

Functions§

rect_matrix

Type Aliases§

Result