Skip to content
Snippets Groups Projects
Commit 83708039 authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#89] add queueFamilyIndex as presentQueueIndex to Surface

parent 9ae957b7
No related branches found
No related tags found
1 merge request!90Resolve "Mehrere Fenster, Abhängigkeiten von Core zu Fenster+Swapchain etc"
......@@ -22,6 +22,7 @@ namespace vkcv
std::vector<vk::SurfaceFormatKHR> formats;
vk::SurfaceCapabilitiesKHR capabilities;
std::vector<vk::PresentModeKHR> presentModes;
uint32_t presentQueueIndex;
};
Surface m_Surface;
......@@ -121,7 +122,13 @@ namespace vkcv
*/
[[nodiscard]]
const vk::Extent2D& getExtent() const;
};
/**
* @return the familyQueueIndex for the surface
*/
[[nodiscard]]
const uint32_t& getPresentQueueIndex() const;
};
}
......@@ -261,4 +261,8 @@ namespace vkcv
uint32_t Swapchain::getImageCount() const {
return m_ImageCount;
}
const uint32_t &Swapchain::getPresentQueueIndex() const {
return m_Surface.presentQueueIndex;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment