wisdom
Loading...
Searching...
No Matches
WisSwapchainDesc Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef struct WisSwapchainDesc {
uint32_t width;
uint32_t height;
uint32_t image_count;
WisTextureUsageFlags texture_usage_flags;
WisDataFormat format;
WisCompositeAlpha composite_alpha;

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
struct SwapchainDesc {
std::uint32_t width;
std::uint32_t height;
std::uint32_t image_count;
wis::TextureUsageFlags texture_usage_flags;
wis::DataFormat format;
wis::SwapchainScaling scaling;
wis::SwapchainFlags flags;
wis::CompositeAlpha composite_alpha;
};
}

Members


  • width defines swapchain image width in pixels.
  • height describes swapchain image height in pixels.
  • image_count indicates number of images in the swapchain.
  • texture_usage_flags describes texture usage flags for the swapchain images. Describe how the swapchain images will be used.
  • format describes swapchain image format.
  • scaling describes swapchain scaling mode.
  • flags describes swapchain flags. Describe additional options for the swapchain.
  • composite_alpha defines composite alpha mode. Describe how the alpha channel of the swapchain images is treated during compositing.

Description


See Also


See also
Functions: wisDeviceCreateSwapchain