Struct hotline_rs::Context
source · pub struct Context<D: Device, A: App> {
pub app: A,
pub device: D,
pub main_window: A::Window,
pub swap_chain: D::SwapChain,
pub pmfx: Pmfx<D>,
pub cmd_buf: D::CmdBuf,
pub imdraw: ImDraw<D>,
}Fields§
§app: A§device: D§main_window: A::Window§swap_chain: D::SwapChain§pmfx: Pmfx<D>§cmd_buf: D::CmdBuf§imdraw: ImDraw<D>Implementations§
Auto Trait Implementations§
impl<D, A> RefUnwindSafe for Context<D, A>where
A: RefUnwindSafe,
D: RefUnwindSafe,
<D as Device>::Buffer: RefUnwindSafe,
<D as Device>::CmdBuf: RefUnwindSafe,
<D as Device>::ComputePipeline: RefUnwindSafe,
<D as Device>::RenderPipeline: RefUnwindSafe,
<D as Device>::Shader: RefUnwindSafe,
<D as Device>::SwapChain: RefUnwindSafe,
<A as App>::Window: RefUnwindSafe,
impl<D, A> Send for Context<D, A>
impl<D, A> Sync for Context<D, A>
impl<D, A> Unpin for Context<D, A>where
A: Unpin,
D: Unpin,
<D as Device>::Buffer: Unpin,
<D as Device>::CmdBuf: Unpin,
<D as Device>::ComputePipeline: Unpin,
<D as Device>::RenderPipeline: Unpin,
<D as Device>::Shader: Unpin,
<D as Device>::SwapChain: Unpin,
<A as App>::Window: Unpin,
impl<D, A> UnwindSafe for Context<D, A>where
A: UnwindSafe,
D: UnwindSafe,
<D as Device>::Buffer: UnwindSafe,
<D as Device>::CmdBuf: UnwindSafe,
<D as Device>::ComputePipeline: UnwindSafe,
<D as Device>::RenderPipeline: UnwindSafe,
<D as Device>::Shader: UnwindSafe,
<D as Device>::SwapChain: UnwindSafe,
<A as App>::Window: UnwindSafe,
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.