nicegraf
ngf_init_info Struct Reference

Data Fields

const ngf_diagnostic_infodiag_info
 
const ngf_allocation_callbacksallocation_callbacks
 
ngf_device_handle device
 
const ngf_renderdoc_inforenderdoc_info
 

Detailed Description

nicegraf initialization parameters. See also: ngf_initialize.

Field Documentation

◆ allocation_callbacks

const ngf_allocation_callbacks* ngf_init_info::allocation_callbacks

Pointer to a structure specifying custom allocation callbacks, which the library shall use to manage CPU memory for internal use. If this pointer is set to NULL, standard malloc and free are used.

◆ device

ngf_device_handle ngf_init_info::device

Handle for the rendering device that nicegraf shall execute rendering commands on. A list of available device and their handles can be obtained with ngf_enumerate_devices.

◆ diag_info

const ngf_diagnostic_info* ngf_init_info::diag_info

Pointer to a structure containing a diagnostic log configuration. If this pointer is set to NULL, no diagnostic callback shall be invoked.

◆ renderdoc_info

const ngf_renderdoc_info* ngf_init_info::renderdoc_info

Pointer to a structure containing RenderDoc API configuration. If this pointer is set to NULL, the RenderDoc API will not be initialized.