pub struct FuncFramebufferRenderTarget { /* private fields */ }Expand description
A framebuffer render target backed by a function.
Implementations§
Source§impl FuncFramebufferRenderTarget
impl FuncFramebufferRenderTarget
Sourcepub fn new(
lock_framebuffer: impl Fn() -> Rc<dyn ILockedFramebuffer> + 'static,
) -> Self
pub fn new( lock_framebuffer: impl Fn() -> Rc<dyn ILockedFramebuffer> + 'static, ) -> Self
Creates a target from a function that locks the framebuffer.
Sourcepub fn with_scene_info(
lock_framebuffer: impl Fn(&RenderTargetSceneInfo) -> (Rc<dyn ILockedFramebuffer>, FramebufferLockProperties) + 'static,
retains_frame_contents: bool,
) -> Self
pub fn with_scene_info( lock_framebuffer: impl Fn(&RenderTargetSceneInfo) -> (Rc<dyn ILockedFramebuffer>, FramebufferLockProperties) + 'static, retains_frame_contents: bool, ) -> Self
Creates a target from a function that receives the scene info and reports the lock properties.
Trait Implementations§
Source§impl IFramebufferRenderTarget for FuncFramebufferRenderTarget
impl IFramebufferRenderTarget for FuncFramebufferRenderTarget
Source§fn lock(
&self,
scene_info: &RenderTargetSceneInfo,
) -> (Rc<dyn ILockedFramebuffer>, FramebufferLockProperties)
fn lock( &self, scene_info: &RenderTargetSceneInfo, ) -> (Rc<dyn ILockedFramebuffer>, FramebufferLockProperties)
Provides a framebuffer descriptor for drawing. Read more
Source§fn retains_frame_contents(&self) -> bool
fn retains_frame_contents(&self) -> bool
Whether the target keeps the frame contents between locks.
Source§impl IPlatformRenderSurfaceRenderTarget for FuncFramebufferRenderTarget
impl IPlatformRenderSurfaceRenderTarget for FuncFramebufferRenderTarget
Source§fn state(&self) -> PlatformRenderTargetState
fn state(&self) -> PlatformRenderTargetState
The state of the platform render target.
Auto Trait Implementations§
impl !RefUnwindSafe for FuncFramebufferRenderTarget
impl !Send for FuncFramebufferRenderTarget
impl !Sync for FuncFramebufferRenderTarget
impl !UnwindSafe for FuncFramebufferRenderTarget
impl Freeze for FuncFramebufferRenderTarget
impl Unpin for FuncFramebufferRenderTarget
impl UnsafeUnpin for FuncFramebufferRenderTarget
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more