pub trait IFramebufferRenderTarget: IPlatformRenderSurfaceRenderTarget {
// Required methods
fn lock(
&self,
scene_info: &RenderTargetSceneInfo,
) -> (Rc<dyn ILockedFramebuffer>, FramebufferLockProperties);
fn dispose(&self);
// Provided method
fn retains_frame_contents(&self) -> bool { ... }
}Expand description
The render target of a framebuffer surface.
Required Methods§
Sourcefn 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.
The contents of the framebuffer are presented when it is disposed.
Provided Methods§
Sourcefn retains_frame_contents(&self) -> bool
fn retains_frame_contents(&self) -> bool
Whether the target keeps the frame contents between locks.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".