KWin
Loading...
Searching...
No Matches
swapchain.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2023 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
11
12namespace KWin
13{
14
15namespace QPA
16{
17
19{
20public:
22 ~Swapchain();
23
24 QSize size() const;
25
27 uint32_t format() const;
28 QList<uint64_t> modifiers() const;
29
30private:
31 GraphicsBufferAllocator *m_allocator;
32 GraphicsBufferOptions m_allocationOptions;
33 QList<GraphicsBuffer *> m_buffers;
34};
35
36}
37}
GraphicsBuffer * acquire()
Definition swapchain.cpp:33
Swapchain(GraphicsBufferAllocator *allocator, const GraphicsBufferOptions &options, GraphicsBuffer *initialBuffer)
Definition swapchain.cpp:14
QSize size() const
Definition swapchain.cpp:28
QList< uint64_t > modifiers() const
Definition swapchain.cpp:55
uint32_t format() const
Definition swapchain.cpp:50
Options * options
Definition main.cpp:73