[][src]Crate pixels

A tiny library providing a GPU-powered pixel buffer.

Pixels represents a 2D pixel buffer with an explicit image resolution, making it ideal for prototyping simple pixel-based games, animations, and emulators. The pixel buffer is rendered entirely on the GPU, allowing developers to easily incorporate special effects with shaders and a customizable pipeline.

The GPU interface is offered by wgpu, and is re-exported for your convenience. Use a windowing framework or context manager of your choice; winit is a good place to start.

Re-exports

pub use wgpu;

Macros

include_spv

Include correctly aligned and typed precompiled SPIR-V

Structs

Pixels

Represents a 2D pixel buffer with an explicit image resolution.

PixelsBuilder

A builder to help create customized pixel buffers.

SurfaceTexture

A logical texture for a window surface.

Enums

Error

All the ways in which creating a pixel buffer can fail.

Traits

RenderPass

Objects that implement this trait can be added to Pixels as a render pass.

Type Definitions

BoxedRenderPass

The boxed render pass type for dynamic dispatch

Device

A reference-counted wgpu::Device

Queue

A reference-counted wgpu::Queue (with interior mutability)

Spirv

Type returned by include_spv, convertible to &[u32]