pub type bgfx_platform_data_t = bgfx_platform_data_s;
Expand description

Platform data.

Aliased Type§

struct bgfx_platform_data_t {
    pub ndt: *mut c_void,
    pub nwh: *mut c_void,
    pub context: *mut c_void,
    pub backBuffer: *mut c_void,
    pub backBufferDS: *mut c_void,
    pub type_: u32,
}

Fields§

§ndt: *mut c_void§nwh: *mut c_void

Native window handle. If NULL, bgfx will create a headless context/device, provided the rendering API supports it.

§context: *mut c_void

GL context, D3D device, or Vulkan device. If NULL, bgfx will create context/device.

§backBuffer: *mut c_void

GL back-buffer, or D3D render target view. If NULL bgfx will create back-buffer color surface.

§backBufferDS: *mut c_void

Backbuffer depth/stencil. If NULL, bgfx will create a back-buffer depth/stencil surface.

§type_: u32

Handle type. Needed for platforms having more than one option.