This project follows the tutorial at https://vulkan-tutorial.com to draw a Rectangle using Vulkan, GLFW, and Rust.
Stephen Seo
bf1fc24011
Previous implementation originally had "init_vulkan" initialization struct creation seperated into a different function, but was merged into "init_vulkan" due to memory issues. More specifically, the struct creation function used pointers to local variables that were not used until the function went out of scope, causing the local variables to be cleaned up and leaving the pointers in the "struct info" struct invalid when they were actually used in a `ffi::Vk...` call. This refactoring ensures that pointers to variables created in the mentioned function does not become invalid when the function ends by stored the pointees in `Pin<Box<...>>` and returning them with the "struct info" struct at the end of the mentioned function. |
||
---|---|---|
shaders | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE |