Commit Graph

118 Commits

Author SHA1 Message Date
Charles Giessen
a0d1ce5b39 Revert "Revert "Simplified structures and plugged into existing logic.""
This reverts commit 2a352b5a25.
2021-04-18 14:42:35 -06:00
Charles Giessen
f4eb8fdffc Revert "Revert "Collapsed ExtensionFeatures and StructureContainer together into FeaturesContainer. After the purging of the function pointers all ExtensionFeatures was doing was just wrapping StructureContainers functions.""
This reverts commit 64aeed5855.
2021-04-18 14:42:35 -06:00
Charles Giessen
9c4317e324 Revert "Revert "Removes need for function pointers.""
This reverts commit e671170007.
2021-04-18 14:42:35 -06:00
Charles Giessen
63f06898f9 Revert "Revert "Assert for null sTypes.""
This reverts commit 7126555c3b.
2021-04-18 14:42:35 -06:00
Charles Giessen
3c38977084 Revert "Revert "Pass by value rather than ref.""
This reverts commit 441938d731.
2021-04-18 14:42:35 -06:00
Charles Giessen
5c85f3a796 Revert "Revert "Fixed Features11/12 break. Tests now pass.""
This reverts commit 299b36a3a4.
2021-04-18 14:42:35 -06:00
Charles Giessen
8a3c1ac6ed Revert "Revert "- Restored removed functions - Restored pNext chain to device (appends to the end of the ExtentionFeatures chain) - Style changes - Migrated ExtensionFeatures into detail""
This reverts commit 4bfc21f8be.
2021-04-18 14:42:35 -06:00
Charles Giessen
e8100dd16c Revert "Revert "Fix breaking bug with features not being populated from VkGetPhysicalDeviceFeatures2""
This reverts commit 77be102a13.
2021-04-18 14:42:35 -06:00
Charles Giessen
98a4ae7ea8 Revert "Revert "Added generic feature polling/matching/enabling.""
This reverts commit 523e76144d.
2021-04-18 14:42:35 -06:00
Charles Giessen
523e76144d Revert "Added generic feature polling/matching/enabling."
This reverts commit 0a397a33d5.
2021-04-18 14:09:56 -06:00
Charles Giessen
77be102a13 Revert "Fix breaking bug with features not being populated from VkGetPhysicalDeviceFeatures2"
This reverts commit 21e400cfcc.
2021-04-18 14:09:56 -06:00
Charles Giessen
4bfc21f8be Revert "- Restored removed functions - Restored pNext chain to device (appends to the end of the ExtentionFeatures chain) - Style changes - Migrated ExtensionFeatures into detail"
This reverts commit 0359ceb3fb.
2021-04-18 14:09:56 -06:00
Charles Giessen
299b36a3a4 Revert "Fixed Features11/12 break. Tests now pass."
This reverts commit 632a42f5cd.
2021-04-18 14:09:56 -06:00
Charles Giessen
441938d731 Revert "Pass by value rather than ref."
This reverts commit 3dc81e44df.
2021-04-18 14:09:56 -06:00
Charles Giessen
7126555c3b Revert "Assert for null sTypes."
This reverts commit 73e2b82dce.
2021-04-18 14:09:56 -06:00
Charles Giessen
e671170007 Revert "Removes need for function pointers."
This reverts commit 075be4900b.
2021-04-18 14:09:56 -06:00
Charles Giessen
64aeed5855 Revert "Collapsed ExtensionFeatures and StructureContainer together into FeaturesContainer. After the purging of the function pointers all ExtensionFeatures was doing was just wrapping StructureContainers functions."
This reverts commit 2f69fa52cb.
2021-04-18 14:09:56 -06:00
Charles Giessen
2a352b5a25 Revert "Simplified structures and plugged into existing logic."
This reverts commit 6ee81abdd3.
2021-04-18 14:09:56 -06:00
Charles Giessen
db55cb8f27 Revert "Cleanup and asserts for VkPhysicalDeviceFeatures2."
This reverts commit 5ac038b778.
2021-04-18 14:09:56 -06:00
Charles Giessen
38d150101b Revert "Cleanup and warning for user provided VkPhysicalDeviceFeatures2."
This reverts commit 91b3949339.
2021-04-18 14:09:56 -06:00
Charles Giessen
0b2faf5659 Revert "Removed duplicate include."
This reverts commit 6a9e0e2ee8.
2021-04-18 14:09:56 -06:00
Cody Goodson
6a9e0e2ee8 Removed duplicate include. 2021-04-18 14:04:27 -06:00
Cody Goodson
91b3949339 Cleanup and warning for user provided VkPhysicalDeviceFeatures2. 2021-04-18 14:04:27 -06:00
Cody Goodson
5ac038b778 Cleanup and asserts for VkPhysicalDeviceFeatures2. 2021-04-18 14:04:27 -06:00
Cody Goodson
6ee81abdd3 Simplified structures and plugged into existing logic. 2021-04-18 14:04:27 -06:00
Cody Goodson
2f69fa52cb Collapsed ExtensionFeatures and StructureContainer together into FeaturesContainer. After the purging of the function pointers all ExtensionFeatures was doing was just wrapping StructureContainers functions. 2021-04-18 14:04:27 -06:00
Cody Goodson
075be4900b Removes need for function pointers. 2021-04-18 14:04:27 -06:00
vibi-manx
73e2b82dce Assert for null sTypes. 2021-04-18 14:04:27 -06:00
vibi-manx
3dc81e44df Pass by value rather than ref. 2021-04-18 14:04:27 -06:00
vibi-manx
632a42f5cd Fixed Features11/12 break. Tests now pass. 2021-04-18 14:04:27 -06:00
vibi-manx
0359ceb3fb - Restored removed functions
- Restored pNext chain to device (appends to the end of the ExtentionFeatures chain)
- Style changes
- Migrated ExtensionFeatures into detail
2021-04-18 14:04:27 -06:00
dangerkangaroo
21e400cfcc Fix breaking bug with features not being populated from VkGetPhysicalDeviceFeatures2 2021-04-18 14:04:27 -06:00
dangerkangaroo
0a397a33d5 Added generic feature polling/matching/enabling. 2021-04-18 14:04:27 -06:00
dangerfen
ef02739a10 Added macro guard. 2021-04-07 19:26:59 -06:00
dangerfen
1b6e09a04a Fixes bug with 1.1/1.2 features not being appended to the pNext chain properly. 2021-04-07 19:26:59 -06:00
Mehmet Oguz Derin
903fdfe87b Compare against feature flags 2021-04-06 15:04:24 -06:00
Mehmet Oguz Derin
617123254a Compare against feature flags 2021-04-06 15:04:24 -06:00
Mehmet Oguz Derin
8d4ac0db50 Check usage flags when iterating desired formats 2021-04-06 15:04:24 -06:00
Charles Giessen
151c76d1cc Add selection by and enableing 1.1 and 1.2 features.
Users can now ask for physical devices which support a specific 1.1 and 1.2
feature. VkBootstrap will then add the selected features to the enable list
in device creation.
2021-03-29 13:23:27 -06:00
Charles Giessen
cf8df11a0a Change clang-format to not add spaces before parens 2021-02-18 13:26:43 -07:00
Charles Giessen
3ebe53bdfe Add full_error() function to Result for easier printing of errors
Comment the various error functions in Result
2021-02-18 13:26:43 -07:00
Charles Giessen
4120362762 Use uint32_t in Queues everywhere, add QUEUE_INDEX_MAX_VALUE as sentinel
This commit removes the many casts from int to uint and back, as -1 was used
as a sentinel value. Because thats confusing and leads to many casts
everywhere it was decided to add a sentinel value and compare everything
to that to determine if a queue index is valid or not.
2021-02-18 13:26:43 -07:00
Charles Giessen
daf244d180 Make SwapchainBuilder constructor take allocation callbacks from device 2021-02-18 13:26:43 -07:00
Charles Giessen
bfc0f06de0 Run clang format on src/VkBootstrap.h 2021-02-18 13:26:43 -07:00
Charles Giessen
bcc8e6f664 Add defaults in comments for SwapchainBuilder 2021-02-18 13:26:43 -07:00
Charles Giessen
c71a5b5fd8 Guard NOMINMAX
mingw64 defines it by default, this prevents multiple definition warnings/errors
2021-02-18 13:26:43 -07:00
Charles Giessen
c02642843c Fix crash due to vector initialization using wrong constructor
Because VkImageView is a uint64_t, not a strong type, the constructor
thinks the .size() is a value to initialize with, not a size.
2020-12-17 01:43:39 -07:00
Charles Giessen
af5409fcea Fix errors which caused win32 builds to fail
The debug_callback_messenger didn't use the VK_API macros and there
were a few places that compared VkHandles to nullptr which weren't liked.
2020-12-17 00:46:08 -07:00
Charles Giessen
325cdff399 Correct macOS surface extension.
The extension name is VK_EXT_metal_surface, not KHR
2020-11-20 16:33:22 -07:00
Charles Giessen
988c0ea4e4 Make swapchain builder find queues if none were provided 2020-10-26 13:17:52 -06:00