Struct bgfx_rs::static_lib::Resolution
source · #[repr(C)]pub struct Resolution {
pub format: TextureFormat,
pub width: u32,
pub height: u32,
pub reset: u32,
pub num_back_buffers: u8,
pub max_frame_latency: u8,
}
Expand description
Backbuffer resolution and reset parameters.
Fields§
§format: TextureFormat
Backbuffer format.
width: u32
Backbuffer width.
height: u32
Backbuffer height.
reset: u32
Reset parameters.
num_back_buffers: u8
Number of back buffers.
max_frame_latency: u8
Maximum frame latency.
Implementations§
source§impl Resolution
impl Resolution
pub fn new() -> Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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