Commit graph

14 commits

Author SHA1 Message Date
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