mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
abfde840fa
* `CpuBufferPool` revamp * Fix oopsie * Fix docs * Add `Subbuffer` * Move `Buffer` to `buffer` module * Replace all buffer types with `Subbuffer` * Add constraints to `Index` and `QueryResultElement` traits * Fix oopsies * Fix examples * Fix doc tests * Rename `_unsized` to `_slice` * Rename `CpuBufferAllocator` * Implement `DeviceOwned` for `SubbufferAllocator` * Use better generic type params * Fix requirement message * Fix docs * Fix missing buffer alignment for texel buffer usage * Add more docs to `Subbuffer` * Add more utility functions to `Subbuffer` * Remove superfluous `dst_offset`s * Murder `FillBufferInfo` * Fix example * Add `Subbuffer::range` * Fix wrong atom size alignment check * Specify all fields in create infos derived from `BufferAllocateInfo` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
readme.md | ||
run_all.sh |
Examples
The examples shown here will not necessarily work for the latest stable release of Vulkano. By default, Github shows the most recent unstable revision, rather than the last stable release. You can switch Github to show the examples for stable releases as follows.
Selecting the version tag:
1. Find the branch/tag selection box and click it. | |
2. Select click on the tags tab. | |
3. Click on the desired version. | |
4. After selecting it should look like this. |
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.