This project follows the tutorial at https://vulkan-tutorial.com to draw a Rectangle using Vulkan, GLFW, and Rust.
Find a file
Stephen Seo bf1fc24011 Refactor: Split init code into function
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.
2024-03-17 18:46:01 +09:00
shaders WIP "Vertex buffers: Vertex input description" 2024-03-15 15:51:12 +09:00
src Refactor: Split init code into function 2024-03-17 18:46:01 +09:00
.gitignore WIP vulkan tutorial to draw a triangle 2024-03-01 14:45:51 +09:00
build.rs WIP: "Graphics pipeline basics: Shader modules" 2024-03-12 14:22:57 +09:00
Cargo.lock WIP vulkan tutorial to draw a triangle 2024-03-01 14:45:51 +09:00
Cargo.toml WIP vulkan tutorial to draw a triangle 2024-03-01 14:45:51 +09:00
LICENSE Add MIT LICENCE 2024-03-01 14:51:55 +09:00