pub struct Host<'a> { /* private fields */ }Expand description
Borrowed host handle passed to LayerPlugin::init when a plugin is
registered, allowing one-time creation of shared resources such as shader
Programs.
Implementations§
Source§impl<'a> Host<'a>
impl<'a> Host<'a>
Sourcepub fn create_program(&self, desc: &ProgramDesc<'_>) -> Result<Program>
pub fn create_program(&self, desc: &ProgramDesc<'_>) -> Result<Program>
Registers a multi-backend shader program with the host.
Sourcepub fn create_ground_heights(&self) -> Result<GroundHeights>
pub fn create_ground_heights(&self) -> Result<GroundHeights>
Creates a reusable ground-height sampler cache.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Host<'a>
impl<'a> !Send for Host<'a>
impl<'a> !Sync for Host<'a>
impl<'a> !UnwindSafe for Host<'a>
impl<'a> Forget for Host<'a>
impl<'a> Freeze for Host<'a>where
&'a dyn HostBackend: Freeze,
impl<'a> Move for Host<'a>
impl<'a> Unpin for Host<'a>where
&'a dyn HostBackend: Unpin,
impl<'a> UnsafeUnpin for Host<'a>where
&'a dyn HostBackend: UnsafeUnpin,
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