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,
pub type_: bgfx_native_window_handle_type_t,
}
Expand description
Platform data.
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_: bgfx_native_window_handle_type_t
Handle type. Needed for platforms having more than one option.
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 moresource§impl Debug for bgfx_platform_data_s
impl Debug for bgfx_platform_data_s
impl Copy for bgfx_platform_data_s
Auto Trait Implementations§
impl Freeze for bgfx_platform_data_s
impl RefUnwindSafe for bgfx_platform_data_s
impl !Send for bgfx_platform_data_s
impl !Sync for bgfx_platform_data_s
impl Unpin for bgfx_platform_data_s
impl UnwindSafe for bgfx_platform_data_s
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more