#[repr(C)]
pub struct PlatformData { pub ndt: *const c_void, pub nwh: *const c_void, pub context: *const c_void, pub back_buffer: *const c_void, pub back_buffer_ds: *const c_void, }
Expand description

Platform data.

Fields

ndt: *const c_void

Native display type (*nix specific).

nwh: *const c_void

Native window handle. If NULL bgfx will create headless context/device if renderer API supports it.

context: *const c_void

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

back_buffer: *const c_void

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

back_buffer_ds: *const c_void

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

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.