mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
657012142b
* Allow `copy_image` source and destination to be the same image The doc: `srcImage and dstImage can be the same image or alias the same memory`. This was achieved by locking only one image exclusively if both are the same. * Allow `blit_image` and `copy_buffer` to have the same src/dest buffers Regarding this and the previous commits, I noticed an important note in the docs. `regions must not overlap` Before this, it was not important check for us to do, since we can't have overlapping regions if both buffers are different. But now we must add some checks to make sure its safe to use these functions while also allowing for shared buffers between src and dest. * Added bounds and overlapping checks for `copy_buffer` * Added overlap checks for `blit_image` and `copy_image` Created utility file `src/command_buffer/validity/ranges.rs` which hold functions that help compute if there is overlap in regions. * Fixed bug in regions overlap check It should be ANDed together and not ORed * Added `image_blit` to the `image-self-copy` example * Added example for `copy_buffer_dimensions` using `basic-compute-shaders` Also updated copyright year for this and the `image-self-copy-blit` example. |
||
---|---|---|
.. | ||
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.