#[repr(C)]pub struct EmscriptenWebGLContextAttributes {Show 15 fields
pub alpha: bool,
pub depth: bool,
pub stencil: bool,
pub antialias: bool,
pub premultipliedAlpha: bool,
pub preserveDrawingBuffer: bool,
pub powerPreference: EM_WEBGL_POWER_PREFERENCE,
pub failIfMajorPerformanceCaveat: bool,
pub majorVersion: c_int,
pub minorVersion: c_int,
pub enableExtensionsByDefault: bool,
pub explicitSwapControl: bool,
pub proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE,
pub renderViaOffscreenBackBuffer: bool,
pub desynchronized: bool,
}Fields§
§alpha: bool§depth: bool§stencil: bool§antialias: bool§premultipliedAlpha: bool§preserveDrawingBuffer: bool§powerPreference: EM_WEBGL_POWER_PREFERENCE§failIfMajorPerformanceCaveat: bool§majorVersion: c_int§minorVersion: c_int§enableExtensionsByDefault: bool§explicitSwapControl: bool§proxyContextToMainThread: EMSCRIPTEN_WEBGL_CONTEXT_PROXY_MODE§renderViaOffscreenBackBuffer: bool§desynchronized: boolTrait Implementations§
impl Copy for EmscriptenWebGLContextAttributes
Auto Trait Implementations§
impl Freeze for EmscriptenWebGLContextAttributes
impl RefUnwindSafe for EmscriptenWebGLContextAttributes
impl Send for EmscriptenWebGLContextAttributes
impl Sync for EmscriptenWebGLContextAttributes
impl Unpin for EmscriptenWebGLContextAttributes
impl UnsafeUnpin for EmscriptenWebGLContextAttributes
impl UnwindSafe for EmscriptenWebGLContextAttributes
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