LM
Size: a a a
LM
AL
AL
AL
LM
AL
LM
/// Returns raw `gfx-rs` state objects, if you want to use `gfx-rs` to write
/// your own graphics pipeline then this gets you the interfaces you need
/// to do so.
/// Returns all the relevant objects at once;
/// getting them one by one is awkward 'cause it tends to create double-borrows
/// on the Context object.
pub fn gfx_objects(
context: &mut Context,
) -> (
&mut <GlBackendSpec as BackendSpec>::Factory,
&mut <GlBackendSpec as BackendSpec>::Device,
&mut gfx::Encoder<
<GlBackendSpec as BackendSpec>::Resources,
<GlBackendSpec as BackendSpec>::CommandBuffer,
>,
gfx::handle::RawDepthStencilView<<GlBackendSpec as BackendSpec>::Resources>,
gfx::handle::RawRenderTargetView<<GlBackendSpec as BackendSpec>::Resources>,
) {
let gfx = &mut context.gfx_context;
let f = &mut gfx.factory;
let d = gfx.device.as_mut();
let e = &mut gfx.encoder;
let dv = gfx.depth_view.clone();
let cv = gfx.data.out.clone();
(f, d, e, dv, cv)
}
LM
get_render_target
, get_factory
LM
LM
LM
DM
F
LM
F
LM
F
AL
LM