mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
d75390042f
* Added command `clear_attachment` This command implements `vkClearAttachments`, most checks are done except for: - Handling attachments with `VK_ATTACHMENT_UNUSED`, `vulkano` doesn't support unused attachments for now. - command buffer protection and protectedNoFault, which `vulkano` is not supporting now. * Added `clear_attachments` example This explains the usage of `clear_attachments` command * Modified `ClearRect.rect_offset` to use `u32` Since, in vulkan docs, it says that the rect must be inside the render area, its better to use `u32` so that we don't get negative values since its not applicable here. I was using `i32` because in vulkan docs its using `VkRect2D` inside `VkClearRect` which is a general rectangle object. Since ours is only specific to `ClearRect` its better to make it specific. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
readme.md | ||
run_all.sh |
Examples
These examples use unreleased functionality of vulkano. For a snapshot of the examples at the latest vulkano release take a look at the examples repository
Running the examples:
cargo run --bin <example>
Example:
cargo run --bin triangle
If you want to compare performances with other libraries, you should pass the --release
flag as
well. Rust is pretty slow in debug mode.