Struct TemporalProducerViews
pub struct TemporalProducerViews<'a> {
pub extent: (u32, u32),
pub current_linear_depth: Option<&'a TextureView>,
pub motion_vectors: Option<&'a TextureView>,
pub reactive_mask: Option<&'a TextureView>,
}Expand description
Producer views supplied by a host for one temporal frame.
Scene colour and linear depth are owned by PortalGpu by default; a host may still provide a
compatible linear-depth view. Motion vectors and reactive masks remain explicit host producer
views. Omitting either of those views keeps temporal output disabled.
Fields§
§extent: (u32, u32)§current_linear_depth: Option<&'a TextureView>§motion_vectors: Option<&'a TextureView>§reactive_mask: Option<&'a TextureView>Implementations§
§impl<'a> TemporalProducerViews<'a>
impl<'a> TemporalProducerViews<'a>
pub const fn availability(
self,
scene_color: bool,
) -> TemporalProducerAvailability
pub const fn availability( self, scene_color: bool, ) -> TemporalProducerAvailability
TemporalProducerViews::availability.
pub const fn has_required_host_producers(self) -> bool
pub const fn has_required_host_producers(self) -> bool
Whether the host has supplied both producer attachments that the renderer cannot derive.
Trait Implementations§
§impl<'a> Clone for TemporalProducerViews<'a>
impl<'a> Clone for TemporalProducerViews<'a>
§fn clone(&self) -> TemporalProducerViews<'a>
fn clone(&self) -> TemporalProducerViews<'a>
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<'a> Copy for TemporalProducerViews<'a>
§impl<'a> Default for TemporalProducerViews<'a>
impl<'a> Default for TemporalProducerViews<'a>
§fn default() -> TemporalProducerViews<'a>
fn default() -> TemporalProducerViews<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TemporalProducerViews<'a>
impl<'a> !UnwindSafe for TemporalProducerViews<'a>
impl<'a> Freeze for TemporalProducerViews<'a>
impl<'a> Send for TemporalProducerViews<'a>
impl<'a> Sync for TemporalProducerViews<'a>
impl<'a> Unpin for TemporalProducerViews<'a>
impl<'a> UnsafeUnpin for TemporalProducerViews<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.