Commit Graph

14 Commits

Author SHA1 Message Date
Charles Giessen
f290028cb5 Add new Queue query API
The original queue query API has shortcomings which cause confusion and
make it harder to do the things people want with vk-bootstrap.

Design features of the new API:
* Choose a queue given a combination of queue types
    - Instead of only choosing based on a single queue type
* Allow picking the first or 'preferred' queue for any given combination of queue types
* Allow picking a present queue with a specific surface handle
	- Instead of only using the surface the PhysicalDevice was selected with
* Dont need to update the library to support new queue types over time
2023-10-22 11:28:30 -06:00
brgalo
9545ed222e :: instead of . required
my first issue, just ran into this while trying it out myself

Is this the correct way to do this?
2022-10-28 15:19:09 -06:00
Matthew Early
c16de53814 fix if 2022-10-13 11:19:39 -06:00
Charles Giessen
ac945e8aa3
Changed the error printf to std::cerr 2020-12-23 15:32:21 -07:00
Charles Giessen
812ce2cf0a Dynamically load vulkan instead of statically link.
Make vk-bootstrap capable of loading the vulkan runtime and not need to
link against the library. This improves the usability of vk-bootstrap since
now you don't need the vulkan library on your system to build.

This commit also changes how SystemInfo works so as to allow the dynamic
vulkan loading.
2020-08-10 23:38:26 -06:00
Charles Giessen
bbe3971a04 Document proper swapchain recreation practice
Make the example not leak the old swapchain handle upon recreation.
vkb::destroy_swapchain doesn't null out the old handle.
2020-06-08 17:03:36 -06:00
Charles Giessen
d169f3e32d Updated docs to include device and swapchain deletion.
Fix example triangle to properly exit if swapchain recreation fails.
2020-06-08 15:40:33 -06:00
Charles Giessen
8a053cadc3 Polished SwapchainBuilder. Redid swapchain recreation.
To recreate a swapchain now requires making a new SwapchainBuilder or
keeping the old one around. Removed the recreate function since its
purpose was unclear. Introduced set_old_swapchain to allow recyling the
old swapchain. Updated documentation and getting started guide.
2020-06-08 14:28:32 -06:00
Charles Giessen
3bbc4831f5 Updated docs for error_code usage
Updated the documentation for using the new <error_code> based errors.
Also fixed an issue where SystemInfo wouldn't check if layers had a
debug_utils extension.
2020-05-18 23:50:24 -06:00
Lesley Lai
df53490ede Error handling with std::error_code 2020-05-17 09:19:12 -06:00
Charles Giessen
8c6f900ce8 Fix typo in getting started guide 2020-05-07 23:15:26 -06:00
Charles Giessen
1b7f0889df Fleshed out Queue section of getting started guide 2020-05-07 23:09:39 -06:00
Charles Giessen
a057ddbe2e Expanded getting started page 2020-05-04 00:54:59 -06:00
Charles Giessen
00b6a74aa8 Added docs/getting_started.md and updated readme 2020-04-19 00:42:57 -06:00