#render #sprites #game

swamp-wgpu-window

creating and managing a window with rendering surfaces using winit and wgpu

10 releases

0.0.10 Nov 14, 2024
0.0.9 Nov 4, 2024

#1076 in Game dev

Download history 320/week @ 2024-10-28 279/week @ 2024-11-04 181/week @ 2024-11-11 33/week @ 2024-11-18 15/week @ 2024-11-25 20/week @ 2024-12-02 22/week @ 2024-12-09

98 downloads per month
Used in 5 crates (4 directly)

MIT license

30KB
585 lines

swamp-wgpu-window 🐊

Crates.io Documentation

Swamp WGPU Window is a Rust crate that provides a simple and efficient abstraction for creating and managing a window with rendering surfaces using winit and wgpu. It streamlines the setup of the wgpu device, queue, and surface, handling window resizing and rendering, making it easier to build high-performance graphics applications.

✨ Features

  • Easy Window and Surface Management: Simplifies the creation and configuration of windows and wgpu surfaces using winit.
  • Device and Queue Setup: Automatically initializes the wgpu device and queue with sensible defaults.
  • Responsive Resizing: Handles window resizing events and reconfigures the rendering surface accordingly.
  • Flexible Rendering Pipeline: Provides a render function callback to integrate custom rendering logic seamlessly.
  • Cross-Platform Support: Compatible with major operating systems supported by winit and wgpu.

📦 Installation

Add swamp-wgpu-window to your project’s Cargo.toml:

[dependencies]
swamp-wgpu-window = "0.0.10"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~5–39MB
~646K SLoC