#vulkan #erupt

asche

Provides an abstraction layer above erupt to easier use Vulkan in Rust

27 stable releases

new 2.0.0 Jul 28, 2021
1.12.0 Jul 22, 2021
1.4.0 Jun 14, 2021
1.3.1 Apr 21, 2021
1.0.2 Mar 31, 2021

#53 in Graphics APIs

Download history 28/week @ 2021-04-09 61/week @ 2021-04-16 11/week @ 2021-04-23 2/week @ 2021-04-30 1/week @ 2021-05-07 12/week @ 2021-05-14 1/week @ 2021-05-28 26/week @ 2021-06-11 1/week @ 2021-06-18 3/week @ 2021-06-25 47/week @ 2021-07-02 63/week @ 2021-07-09 177/week @ 2021-07-16 32/week @ 2021-07-23

119 downloads per month

Zlib OR MIT OR Apache-2.0

720KB
5.5K SLoC

asche

Latest version Documentation ZLIB MIT Apache

Provides an abstraction layer above erupt to easier use Vulkan in Rust. Mainly handles the Vulkan busywork (device initialization, memory handling etc.) and the lifetimes of objects.

No validation and a lot of pain. Lifetimes are not fully tracked, so you need to pay attention when to drop which resource to avoid UB (check the validation layer).

You most likely want to use wgpu-rs instead!

Requirements

Vulkan 1.2+ driver.

Features

  • tracing Adds logging using tracing.
  • profiling Adds support for profiling.
  • vk-buffer-device-address Uses the buffer device address Vulkan feature. Mainly useful when using the raytracing extension.

tracing and vk-buffer-device-address are enabled by default.

Examples

Examples are provided.

Triangle

Most simple example that shows how to draw a triangle in Vulkan.

Triangle example

Cube

Shows how to use push constants, vertex and index buffers and also compressed textures.

Cube example

Raytracing

Uses the VK_raytracing_KHR extension to fully ray trace a simple scene. Shows how to initialize and use acceleration structures (triangle based), create and use the shader binding table (SBT), use descriptor indexing with non uniform indexes and partial binds, write raytracing shader and do very basic lightning.

Raytracing example

Compute

Simple compute example.

License

Licensed under MIT or Apache-2.0 or ZLIB.

Dependencies

~7MB
~113K SLoC