1#pragma once
2
3#include <nn/gfx/detail/gfx_DataContainer.h>
4#include <nn/gfx/gfx_Enum.h>
5#include <nn/gfx/gfx_SwapChainInfoData.h>
6
7namespace nn::gfx {
8class SwapChainInfo : public detail::DataContainer<SwapChainInfoData> {
9public:
10 SwapChainInfo();
11 void SetDefault();
12 void SetLayer(vi::Layer*);
13 void SetFormat(ImageFormat);
14 void SetBufferCount(int);
15 void SetWidth(int);
16 void SetHeight(int);
17 vi::Layer* GetLayer() const;
18 ImageFormat GetFormat() const { return static_cast<ImageFormat>(format); }
19 int GetBufferCount() const;
20 int GetWidth() const { return width; }
21 int GetHeight() const { return height; }
22};
23} // namespace nn::gfx