Struct bgfx_sys::bgfx_platform_data_s
source · #[repr(C)]pub struct bgfx_platform_data_s {
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,
}Expand description
Platform data.
Fields§
§ndt: *mut c_void§nwh: *mut c_voidNative window handle. If NULL, bgfx will create a headless
context/device, provided the rendering API supports it.
context: *mut c_voidGL context, D3D device, or Vulkan device. If NULL, bgfx
will create context/device.
backBuffer: *mut c_voidGL back-buffer, or D3D render target view. If NULL bgfx will
create back-buffer color surface.
backBufferDS: *mut c_voidBackbuffer depth/stencil. If NULL, bgfx will create a back-buffer
depth/stencil surface.
Trait Implementations§
source§impl Clone for bgfx_platform_data_s
impl Clone for bgfx_platform_data_s
source§fn clone(&self) -> bgfx_platform_data_s
fn clone(&self) -> bgfx_platform_data_s
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more