Lugdunum  0.1.0
Swapchain.inl
Go to the documentation of this file.
1 inline void Swapchain::setPreferences(const Renderer::Preferences::Swapchain& preferences) {
2  _preferences = &preferences;
3 }
4 
5 inline void Swapchain::setSurface(VkSurfaceKHR surface) {
6  _surface = surface;
7 }
8 
9 inline void Swapchain::setMinImageCount(uint32_t minImageCount) {
10  _minImageCount = minImageCount;
11 }
12 
13 inline void Swapchain::setImageFormat(VkFormat imageFormat) {
14  _imageFormat = imageFormat;
15 }
16 
17 inline void Swapchain::setImageColorSpace(VkColorSpaceKHR imageColorSpace) {
18  _imageColorSpace = imageColorSpace;
19 }
20 
21 inline void Swapchain::setImageExtent(VkExtent2D imageExtent) {
22  _imageExtent = imageExtent;
23 }
24 
25 inline void Swapchain::setImageUsage(VkImageUsageFlags imageUsage) {
26  _imageUsage = imageUsage;
27 }
28 
29 inline void Swapchain::setExclusive(bool exclusive) {
30  _exclusive = exclusive;
31 }
32 
33 inline void Swapchain::setQueueFamilyIndices(const std::set<uint32_t>& queueFamilyIndices) {
34  _queueFamilyIndices = queueFamilyIndices;
35 }
36 
37 inline void Swapchain::setPreTransform(VkSurfaceTransformFlagBitsKHR preTransform) {
38  _preTransform = preTransform;
39 }
40 
41 inline void Swapchain::setCompositeAlpha(VkCompositeAlphaFlagBitsKHR compositeAlpha) {
42  _compositeAlpha = compositeAlpha;
43 }
44 
45 inline void Swapchain::setPresentMode(VkPresentModeKHR presentMode) {
46  _presentMode = presentMode;
47 }
48 
49 inline void Swapchain::setClipped(VkBool32 clipped) {
50  _clipped = clipped;
51 }
52 
53 inline void Swapchain::setOldSwapchain(VkSwapchainKHR oldSwapchain) {
54  _oldSwapchain = oldSwapchain;
55 }