nicegraf
ngf_swapchain_info Struct Reference

Data Fields

ngf_image_format color_format
 
ngf_colorspace colorspace
 
ngf_image_format depth_format
 
ngf_sample_count sample_count
 
uint32_t capacity_hint
 
uint32_t width
 
uint32_t height
 
uintptr_t native_handle
 
ngf_present_mode present_mode
 

Detailed Description

Swapchain configuration.

Field Documentation

◆ capacity_hint

uint32_t ngf_swapchain_info::capacity_hint

Number of images in swapchain (may be ignored)

◆ color_format

ngf_image_format ngf_swapchain_info::color_format

Swapchain image format.

◆ colorspace

ngf_colorspace ngf_swapchain_info::colorspace

Colorspace that the swapchain image uses.

◆ depth_format

ngf_image_format ngf_swapchain_info::depth_format

Format to use for the depth buffer, if set to NGF_IMAGE_FORMAT_UNDEFINED, no depth buffer will be created.

◆ height

uint32_t ngf_swapchain_info::height

Height of swapchain images in pixels.

◆ native_handle

uintptr_t ngf_swapchain_info::native_handle

HWND, ANativeWindow, NSWindow, etc.

◆ present_mode

ngf_present_mode ngf_swapchain_info::present_mode

Desired present mode.

◆ sample_count

ngf_sample_count ngf_swapchain_info::sample_count

Number of samples per pixel (0 for non-multisampled)

◆ width

uint32_t ngf_swapchain_info::width

Width of swapchain images in pixels.