pub struct PresentableDraw {
pub window_id: usize,
pub target_id: PresentableImageId,
pub width: u32,
pub height: u32,
}
Expand description
After a successful client-side draw, all the host needs to know, so it can present the result, is the swapchain image used, and the sub-area within that image that was being used to draw the entire client window (with the whole allocated area rarely used, except just before needing a new swapchain).
Fields§
§window_id: usize
§target_id: PresentableImageId
§width: u32
§height: u32
Trait Implementations§
Source§impl Clone for PresentableDraw
impl Clone for PresentableDraw
Source§fn clone(&self) -> PresentableDraw
fn clone(&self) -> PresentableDraw
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DeBin for PresentableDraw
impl DeBin for PresentableDraw
Source§impl DeJson for PresentableDraw
impl DeJson for PresentableDraw
fn de_json( s: &mut DeJsonState, i: &mut Chars<'_>, ) -> Result<PresentableDraw, DeJsonErr>
fn deserialize_json(input: &str) -> Result<Self, DeJsonErr>
Source§impl Debug for PresentableDraw
impl Debug for PresentableDraw
Source§impl SerBin for PresentableDraw
impl SerBin for PresentableDraw
Source§impl SerJson for PresentableDraw
impl SerJson for PresentableDraw
fn ser_json(&self, d: usize, s: &mut SerJsonState)
fn serialize_json(&self) -> String
impl Copy for PresentableDraw
Auto Trait Implementations§
impl Freeze for PresentableDraw
impl RefUnwindSafe for PresentableDraw
impl Send for PresentableDraw
impl Sync for PresentableDraw
impl Unpin for PresentableDraw
impl UnwindSafe for PresentableDraw
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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