Skip to content

Conversation

@Name-hw
Copy link
Owner

@Name-hw Name-hw commented Jul 19, 2025

No description provided.

Name-hw and others added 6 commits June 30, 2025 16:31
Added JrVulkanContext to improve development efficiency of JrObjects
1. Load Volk and VMA as a unified "c" variable.
2. Create a boilerplate that can be used in each JrObject source file.
3. Minimize the build process (build each JrObjects source file -> build one exports.zig file).
4. Create VolkUsage.h to link Volk equally in JrObjects that use Zig and in VMA and main renderer that use C++.
1. Using VMA, I was able to learn device extension, instance extension, and physical device features through the VMA_ALLOCATOR_CREATE_BUFFER_DEVICE_ADDRESS_BIT flag.
2. I found that if a struct has members with large alignments, such as void *, the memory layout may change from the declaration order.
1. Completely refactored colorImage, depthImage, textureImage, swapchainImage into JrImage.
2. For colorImage, depthImage, etc., unique_ptr was used instead of raw pointers.
3. While modifying the code related to swapchainImageViews, I modified JrGui to use JrImage, which enabled interaction between JrObjects.
4. I was able to figure out how to create a template function in C++ to convert swapChainImages to a std::vector<std::unique_ptr<JrImage>> and then to a JrImage *(*)[3], which is the type used in JrVulkanContext.
@Name-hw Name-hw merged commit 075f082 into main Jul 19, 2025
1 check passed
@Name-hw Name-hw changed the title Feature/improved memory allocation Feature/improved image allocation Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants