mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-16 17:12:29 +00:00
![]() * Implement VertexDefinition for VertexBufferInfo, change Vertex signature to return VertexInfo and implement VertexInput-trait helper for Vertex to construct VertexBufferInfo objects from Vertex types. Updated teapot example to show usage. * Reimplement BuffersDefinition leveraging VertexBufferInfo * Reduce the amount of types required, remove VertexInfo, expose VertexBufferInfo methods on Vertex and use std HashMap transparently instead. * Fix teapot example * Fix outdated docs and use full path to Vertex trait to avoid issues * Fix formatting of imports * Remove clone and directly instantiate VertexInputBindingDescription. * Rename VertexBufferInfo to VertexBufferDescription and being update of examples to use it * Run cargo clippy fix to cleanup imports in examples * Remove obsolete comment * cargo fmt |
||
---|---|---|
.. | ||
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.