Commit a7178c7
committed
Address all outstanding comments from PR#119
Refactor code structure: move Initialize methods to private, improve Vulkan object initialization, enhance material caching, and clean up resource handling
- Move AudioSystem and ModelLoader Initialize methods to private (called by constructors)
- Replace manual static member initialization with inline static initialization (C++17)
- Simplify Vulkan struct initialization by removing redundant `.sType` fields
- Use `vk::StructureChain` for device feature configuration
- Replace C-style arrays with `std::array` for queue family indices
- Optimize swapchain image view creation by reusing template
- Enhance fence wait error handling with result checking
- Improve material caching by using existing iterators to avoid redundant lookups
- Refactor ModelLoader: extract helper methods for materials, cameras, animations, and meshes
- Add assertions for null camera checks in uniform buffer updates
- Change GetMaterial return type to `const Material*` for immutability
- Fix documentation comments and AsciiDoc formatting issues
- Optimize descriptor set binding by removing unnecessary vector allocation
- Refine swapchain recreation to only trigger on `eSuboptimalKHR`, not `eErrorOutOfDateKHR`
- Improve semaphore management with clearer comments on indexing strategy1 parent e3749dc commit a7178c7
File tree
44 files changed
+10635
-11463
lines changed- attachments/simple_engine
- en/Building_a_Simple_Engine
- Advanced_Topics
- Camera_Transformations
- Engine_Architecture
- GUI
- Lighting_Materials
- Loading_Models
- Mobile_Development
- Subsystems
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+10635
-11463
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
798 | | - | |
| 799 | + | |
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
| |||
1160 | 1161 | | |
1161 | 1162 | | |
1162 | 1163 | | |
1163 | | - | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
1221 | | - | |
1222 | | - | |
| 1221 | + | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
1261 | | - | |
| 1261 | + | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
1353 | | - | |
| 1352 | + | |
| 1353 | + | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
| |||
0 commit comments