nicegraf
ngf_context_info Struct Reference

Data Fields

const ngf_swapchain_infoswapchain_info
 
const ngf_context shared_context
 

Detailed Description

Configures a nicegraf rendering context.

Field Documentation

◆ shared_context

const ngf_context ngf_context_info::shared_context

A reference to another context; the newly created context shall be able to use the resources (such as buffers and images) created within the given context, and vice versa Can be NULL.

◆ swapchain_info

const ngf_swapchain_info* ngf_context_info::swapchain_info

Configures the swapchain that the context will be presenting to. This can be NULL if all rendering is done off-screen and the context never presents to a window.