bgfx_init_t

Initialization parameters used by bgfx::init.

Members

Variables

allocator
void* allocator;

Custom allocator. When a custom allocator is not specified, bgfx uses the CRT allocator. Bgfx assumes custom allocator is thread safe.

callback
void* callback;

Provide application specific callback interface. See: bgfx::CallbackI

capabilities
ulong capabilities;

Capabilities initialization mask (default: UINT64_MAX).

debug_
bool debug_;

Enable device for debuging.

deviceId
ushort deviceId;

Device id. If set to 0 it will select first device, or device with matching id.

limits
bgfx_init_limits_t limits;

Configurable runtime limits parameters.

platformData
bgfx_platform_data_t platformData;

Platform data.

profile
bool profile;

Enable device for profiling.

resolution
bgfx_resolution_t resolution;

Backbuffer resolution and reset parameters. See: bgfx::Resolution.

type
bgfx_renderer_type_t type;

Select rendering backend. When set to RendererType::Count a default rendering backend will be selected appropriate to the platform. See: bgfx::RendererType

vendorId
ushort vendorId;

Vendor PCI id. If set to BGFX_PCI_ID_NONE it will select the first device. - BGFX_PCI_ID_NONE - Autoselect adapter. - BGFX_PCI_ID_SOFTWARE_RASTERIZER - Software rasterizer. - BGFX_PCI_ID_AMD - AMD adapter. - BGFX_PCI_ID_INTEL - Intel adapter. - BGFX_PCI_ID_NVIDIA - nVidia adapter.

Meta