Commit graph

29 commits

Author SHA1 Message Date
002d6fa9a4
Move create_image_view to vkSwapchain->create_present_image_view
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-17 16:18:35 +01:00
891835c4af
log: Remove vulkan target
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-17 15:40:30 +01:00
fc4a856048
VkSwapchain: Revert rename surface_resolution
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-17 14:12:05 +01:00
210a5504ab
Refactor
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-17 14:07:37 +01:00
e9ce480f96
Run cargo fmt
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-16 22:45:22 +01:00
bc94b68c0c
Add log + Cleanup
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-15 23:16:18 +01:00
21195b57e6
VkSwapchain: Remove useless drop_swapchain
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-15 22:49:05 +01:00
5272bf14e8
VkSwapchain: remove useless lifetime
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-15 22:43:15 +01:00
174e12591c
Use Arc to store reference and store dependencies for each vulkan types
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Arc it's used because later, i can use on multi-threaded programs
2024-11-15 22:40:36 +01:00
1cb9309a56
WindowSize: Use physical size instead
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-15 20:43:24 +01:00
fb4ac29c07 Add a lot of thing
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-15 13:59:19 +01:00
09e109d6ef Update vk_swapchain
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
- Refactor drop swapchain
- Fix crash when re-create swapchain
2024-11-15 12:38:14 +01:00
96cb003174 Refactor vk_swapchain
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-13 13:56:22 +01:00
ee8b886aec
Add swapchain (work in progress)
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-12 22:01:08 +01:00
caa79270db Refactor
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-12 13:25:52 +01:00
d0c6f31a1a
Refactor Vulkan device and instance handling
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Refactor Vulkan initialization to merge logical and physical device management into a unified `VkDevice` struct. Improved logging for Vulkan instance creation and surface management. Added methods to `VkPhysicalDevice` and `VkSurface` for more detailed querying of physical device capabilities.
2024-11-11 12:09:52 +01:00
b91571e777
Enhance vulkan instance and physical device display formatting
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Refactor Vulkan instance and physical device formatting for better clarity. Added formatter utilities to encapsulate version and property formatting. Updated logging to use the new formatted output for improved debug readability.
2024-11-10 21:27:03 +01:00
b7d0abb9ed
Refactor layer selection logic for more flexibility
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Updated the layer selection logic to utilize an enum, LayersSelector, which supports selecting no layers, specific layers, or all available layers. This refactor enhances code clarity and allows for more flexible layer management.
2024-11-10 19:10:16 +01:00
da0be47b14
Add logical device struct and surface handling for Vulkan
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Introduce the VkLogicalDevice struct and add surface creation logic in VkInstance. Also, import necessary extensions and refine Vulkan physical device and window handling. Included a dependency on 'anyhow' for error management.
2024-11-10 18:18:59 +01:00
4048937a6c
Refactor VK layer handling and add logging improvements
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Refactored VK layer handling by changing return type of `use_layers` to `Vec<CString>`, adjusting subsequent usage of layers. Implemented `Display` for `VkPhysicalDevice` for better logging. Enhanced application initialization with detailed window attributes. Transitioned to using `log::info` for consistent logging.
2024-11-10 11:27:45 +01:00
f52832e0e5
Refactor layer selection and logging in Vulkan utils
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Separated concerns for layer fetching, logging, and selection into distinct functions. This improves readability and maintainability, allowing each function to focus on a single responsibility.
2024-11-09 19:01:14 +01:00
e26f40ea74 Update
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-08 17:01:30 +01:00
7c072d60e2
Begin add use_layers [not work]
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-07 22:14:01 +01:00
56ad167b0f Add logs of physical devices
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-07 17:18:10 +01:00
06cc558baf Finish vk_instance
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
Add vk_physical_device
2024-11-07 14:05:09 +01:00
f24a6b66bc
Add idea
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-06 22:14:23 +01:00
9223b89e4e
Add VkInstance
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-06 22:13:46 +01:00
433dc1afc8 Add ash and winit
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-06 16:47:54 +01:00
799205f02a first commit
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 0s
2024-11-06 13:21:23 +01:00