pub struct FramePassOptions { /* private fields */ }Expand description
Shared placement and ordering state for one frame item.
Implementations§
Source§impl FramePassOptions
impl FramePassOptions
Sourcepub const fn with_viewport(self, viewport: LogicalViewportRegion) -> Self
pub const fn with_viewport(self, viewport: LogicalViewportRegion) -> Self
Positions the item in a logical sub-viewport of the surface.
Sourcepub const fn with_clip(self, clip: ScreenClipRect) -> Self
pub const fn with_clip(self, clip: ScreenClipRect) -> Self
Intersects all source-local clips with an additional item-local clip.
Sourcepub const fn viewport(self) -> Option<LogicalViewportRegion>
pub const fn viewport(self) -> Option<LogicalViewportRegion>
Returns the optional positioned logical viewport.
Sourcepub const fn clip(self) -> Option<ScreenClipRect>
pub const fn clip(self) -> Option<ScreenClipRect>
Returns the optional item-local logical clip.
Trait Implementations§
Source§impl Clone for FramePassOptions
impl Clone for FramePassOptions
Source§fn clone(&self) -> FramePassOptions
fn clone(&self) -> FramePassOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FramePassOptions
Source§impl Debug for FramePassOptions
impl Debug for FramePassOptions
Source§impl Default for FramePassOptions
impl Default for FramePassOptions
Source§fn default() -> FramePassOptions
fn default() -> FramePassOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for FramePassOptions
impl PartialEq for FramePassOptions
impl StructuralPartialEq for FramePassOptions
Auto Trait Implementations§
impl Freeze for FramePassOptions
impl RefUnwindSafe for FramePassOptions
impl Send for FramePassOptions
impl Sync for FramePassOptions
impl Unpin for FramePassOptions
impl UnsafeUnpin for FramePassOptions
impl UnwindSafe for FramePassOptions
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