Struct bgfx_rs::static_lib::PlatformData
source · #[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 a headless
context/device, provided the rendering API supports it.
context: *const c_void
GL context, D3D device, or Vulkan 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 a back-buffer
depth/stencil surface.
Implementations§
source§impl PlatformData
impl PlatformData
pub fn new() -> PlatformData
Auto Trait Implementations§
impl Freeze for PlatformData
impl RefUnwindSafe for PlatformData
impl !Send for PlatformData
impl !Sync for PlatformData
impl Unpin for PlatformData
impl UnwindSafe for PlatformData
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