You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is possible to do the following as ResultValue<T> provides a cast operator to std::tuple<vk:Result, T>: const auto [acquireResult, imageIndex] = _device->acquireNextImageKHR(...);.
I would like to be able to do this: std::tie(std::ignore, _imageIndex) = _device->acquireNextImageKHR(...);1 however it currently fails to compile.
As a work around I either have to static_cast the ResultValue to std::tuple, or write a helper function that does such. Would it be possible to alter vk::ResultValue to allow this implicitly?
Footnotes
Note that the actual usefulness of ignoring the result of vkAcquireNextImageKHR is beyond the scope of this issue. ↩
The text was updated successfully, but these errors were encountered:
std::tie(result, backBufferIndex) = swapchainData.swapchain.acquireNextImage(...) is an actual snippet from my C++20 sample... std::ignore works in place of result as well. I'm using Vulkan SDK 1.3.280.0.
Currently it is possible to do the following as
ResultValue<T>
provides a cast operator tostd::tuple<vk:Result, T>
:const auto [acquireResult, imageIndex] = _device->acquireNextImageKHR(...);
.I would like to be able to do this:
std::tie(std::ignore, _imageIndex) = _device->acquireNextImageKHR(...);
1 however it currently fails to compile.As a work around I either have to
static_cast
the ResultValue tostd::tuple
, or write a helper function that does such. Would it be possible to altervk::ResultValue
to allow this implicitly?Footnotes
Note that the actual usefulness of ignoring the result of vkAcquireNextImageKHR is beyond the scope of this issue. ↩
The text was updated successfully, but these errors were encountered: