Skip to content

Commit

Permalink
MSVC workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Aug 19, 2024
1 parent 4fdbeaf commit 09de864
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interface/vulkan/Gpu.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ namespace vk_deferred::vulkan {
Queues(vk::Device device, const QueueFamilies &queueFamilies) noexcept
: graphicsPresent { device.getQueue(queueFamilies.graphicsPresent, 0) } { }

[[nodiscard]] static auto getCreateInfos(vk::PhysicalDevice, const QueueFamilies &queueFamilies) noexcept {
[[nodiscard]] static auto getCreateInfos(vk::PhysicalDevice, const QueueFamilies &queueFamilies) noexcept
#ifdef _MSC_VER
-> vku::RefHolder<std::array<vk::DeviceQueueCreateInfo, 1>, std::array<float, 1>>
#endif
{
return vku::RefHolder {
[&](std::span<const float> priorities) {
return std::array {
Expand Down

0 comments on commit 09de864

Please sign in to comment.