Crates.io | favilla |
lib.rs | favilla |
version | 0.3.0 |
source | src |
created_at | 2021-08-06 22:27:28.55355 |
updated_at | 2022-07-22 16:29:57.512641 |
description | A library with utilities for Vulkan programming. |
homepage | |
repository | https://github.com/StygianLightning/favilla |
max_upload_size | |
id | 432609 |
size | 57,693 |
favilla
provides some utilities for writing Vulkan code using ash.
The main goal of favilla
is to provide commonly required functionality for Vulkan
while not getting in the way, giving the user full control and the option to use
as much or as little of favilla
's functionality as they want.
As an example, many structs in favilla
offer construction methods that make certain assumptions,
which can help reduce boilerplate code.
There is also the option to directly construction these structs (through pub fields),
so it is possible to use the utility methods offered by these types,
even if the assumptions made by the construction methods don't hold.
favilla
tries to make getting started easy and targets the most common use cases in
a relatively easy-to-use way.
It does not try to be an all-encompassing abstraction of Vulkan.
Sometimes, there is no way to work around the assumptions made by favilla
;
in such cases, your application should use ash
directly to synchronize resources according to your needs.
For example, when uploading data from a staging buffer to an image
favilla
assumes that your images will be used by a fragment shader, not by a vertex shader, and
sets the stages and masks in the memory barriers used for synchronization accordingly.
The source code of favilla
should be helpful for making the necessary adjustments in your application directly.
Licensed under
Unless explicitly stated otherwise, all contributions are
assumed to be licensed under the same licences as favilla
(see above).