2 _preferences = &preferences;
5 inline void Swapchain::setSurface(VkSurfaceKHR surface) {
9 inline void Swapchain::setMinImageCount(uint32_t minImageCount) {
10 _minImageCount = minImageCount;
13 inline void Swapchain::setImageFormat(VkFormat imageFormat) {
14 _imageFormat = imageFormat;
17 inline void Swapchain::setImageColorSpace(VkColorSpaceKHR imageColorSpace) {
18 _imageColorSpace = imageColorSpace;
21 inline void Swapchain::setImageExtent(VkExtent2D imageExtent) {
22 _imageExtent = imageExtent;
25 inline void Swapchain::setImageUsage(VkImageUsageFlags imageUsage) {
26 _imageUsage = imageUsage;
29 inline void Swapchain::setExclusive(
bool exclusive) {
30 _exclusive = exclusive;
33 inline void Swapchain::setQueueFamilyIndices(
const std::set<uint32_t>& queueFamilyIndices) {
34 _queueFamilyIndices = queueFamilyIndices;
37 inline void Swapchain::setPreTransform(VkSurfaceTransformFlagBitsKHR preTransform) {
38 _preTransform = preTransform;
41 inline void Swapchain::setCompositeAlpha(VkCompositeAlphaFlagBitsKHR compositeAlpha) {
42 _compositeAlpha = compositeAlpha;
45 inline void Swapchain::setPresentMode(VkPresentModeKHR presentMode) {
46 _presentMode = presentMode;
49 inline void Swapchain::setClipped(VkBool32 clipped) {
53 inline void Swapchain::setOldSwapchain(VkSwapchainKHR oldSwapchain) {
54 _oldSwapchain = oldSwapchain;