Skip to content

Commit

Permalink
MSVC support.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed May 19, 2024
1 parent faa9c4b commit 06ebdc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/vku/Gpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace details {
[[no_unique_address]] std::conditional_t<details::alternative_of<vk::PhysicalDeviceFeatures2, PNextsTuple>, details::nofield, vk::PhysicalDeviceFeatures> physicalDeviceFeatures;
std::function<QueueFamilyIndices(vk::PhysicalDevice)> queueFamilyIndicesGetter = DefaultQueueFamilyIndicesGetter{};
std::function<std::uint32_t(vk::PhysicalDevice)> physicalDeviceRater = DefaultPhysicalDeviceRater { extensions, &physicalDeviceFeatures, queueFamilyIndicesGetter };
PNextsTuple pNexts;
PNextsTuple pNexts = std::tuple<>{};
};

vk::raii::PhysicalDevice physicalDevice;
Expand Down Expand Up @@ -139,7 +139,7 @@ namespace details {
queueCreateInfos,
{},
config.extensions,
[&] -> const vk::PhysicalDeviceFeatures* {
[&]() -> const vk::PhysicalDeviceFeatures* {
return std::convertible_to<decltype(config.physicalDeviceFeatures), vk::PhysicalDeviceFeatures>
? &config.physicalDeviceFeatures
: nullptr;
Expand Down
2 changes: 1 addition & 1 deletion include/vku/Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace vku {
struct Config {
std::vector<const char*> layers;
std::vector<const char*> extensions;
PNextsTuple pNexts;
PNextsTuple pNexts = std::tuple<>{};
};

vk::raii::Context context;
Expand Down

0 comments on commit 06ebdc3

Please sign in to comment.