pub struct Display { /* private fields */ }Expand description
A physical display interface.
Implementations
sourceimpl Display
impl Display
sourcepub fn new(
device: &Arc<Device>,
pool: Box<dyn ResolverPool>,
swapchain: Swapchain
) -> Self
pub fn new(
device: &Arc<Device>,
pool: Box<dyn ResolverPool>,
swapchain: Swapchain
) -> Self
Constructs a new Display object.
sourcepub fn acquire_next_image(
&mut self
) -> Result<(SwapchainImageNode, RenderGraph), SwapchainError>
pub fn acquire_next_image(
&mut self
) -> Result<(SwapchainImageNode, RenderGraph), SwapchainError>
Returns a new RenderGraph with a bound swapchain image, if possible.
sourcepub fn present_image(
&mut self,
render_graph: RenderGraph,
swapchain_image: SwapchainImageNode
) -> Result<(), DisplayError>
pub fn present_image(
&mut self,
render_graph: RenderGraph,
swapchain_image: SwapchainImageNode
) -> Result<(), DisplayError>
Displays the given swapchain image using passes specified in render_graph, if possible.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl !UnwindSafe for Display
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more