blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

tutorial 19 LveBuffer fix and ROOT_PATH macro #8

Closed n3rdw1z4rd closed 2 years ago

n3rdw1z4rd commented 2 years ago

This PR merges the fix to LveBuffer validation error found on my system, per Brendan's instruction.

Also, I added a ROOT_PATH macro that can be set in compiler options to provide the ability to read files from a path prefix. If the compiler doesn't declare ROOT_PATH, then it defaults to an empty string in code and is read from the executables current working path. This was done in an effort to use cmake outside the repo folder without having to make any changes to the repo.

My dev folder layout looks like:

n3rdw1z4rd commented 2 years ago

Yes, I will close this PR and create two new PRs...