Commit Graph

364 Commits

Author SHA1 Message Date
Charles Giessen
7d2402ba2d modified clang format again 2020-02-06 17:42:10 -07:00
Charles Giessen
4a464a61aa Made it possible to specify the desired queue priorities.
If none are provided, it will use 1.0f for everything.
2020-02-06 16:56:50 -07:00
Charles Giessen
8b33c46bf9 Moved some functions to .cpp, modified preferred physical device.
Also adjusted the .clang-format for better legibility of code
2020-02-06 15:46:14 -07:00
Charles Giessen
c30782a106 Removed allocators and added new swapchainbuilder constructor
Allocators only complicated the interface and likely aren't needed. They
are useful on other function calls, but none of the ones here mattered.

A constructor was added to swapchain that has all the handles it needs.
This way users don't have to pass in the vkb::Device struct to use the
swapchain builder
2020-02-06 14:20:39 -07:00
Charles Giessen
4851a5bec9 Fixed issue with queue priorities
Before it only had 1 priority even if there were multiple queues.
Now it creates a vector of priorities so it shouldn't cause issues.
It also means logic to setup actual priority values can be put in place
in the future
2020-02-04 10:26:46 -07:00
Charles Giessen
02e44adf1f Wording for readme 2020-02-03 20:54:03 -07:00
Charles Giessen
ac7d38046b Updated readme to include section on how to use in an app 2020-02-03 20:51:52 -07:00
Charles Giessen
8734ed18e0 moved triangle.cpp to its own folder, updated readme & license 2020-02-03 20:34:46 -07:00
Charles Giessen
39a3c37465 Fixed up swapchain, added an example based on vulkan-tutorial
Now there is a concise example of the library in use all the way to presenting.

Needs to be rewritten to remove exceptions, but for first pass its good enough.
2020-02-03 16:23:47 -07:00
Charles Giessen
37bc741658 Moved all source code into 2 files
This will make it easier to include in other projects.

Revamped how pNext chains work to no longer cause crashes.
2020-01-31 15:23:22 -07:00
Charles Giessen
ca312010fd Added MIT License 2020-01-30 02:05:54 -07:00
Charles Giessen
8c40123897 Updated readme to have build directions 2020-01-30 02:01:49 -07:00
Charles Giessen
155677ec0f Added glfw as git submodule + Catch2
Made the physical device, device, and swapchain builders take the required
parameters as constructor arugments.

Made tests optional using a cmake bool
2020-01-30 01:47:41 -07:00
Charles Giessen
d9ca075c86 First commit of Vk-Bootstrap
Library contains barebones implementations for simplified
	Instance creation
	Physical Device selection
	Device creation
	Swapchain Creation/Recreation

Much of the repo is WIP, and there is little to no testing.
Also, while a single header file is desired for the future, currently
it is structured more like a normal project with .cpp files
2020-01-30 01:20:18 -07:00