Struct TemporalProducerContract
pub struct TemporalProducerContract<'a> { /* private fields */ }Expand description
The three genuine producer views required for temporal accumulation.
Each field is optional so an adapter can describe a partial capability without fabricating a
placeholder texture. admit refuses partial contracts before a Qualia temporal schedule is
built.
Implementations§
§impl<'a> TemporalProducerContract<'a>
impl<'a> TemporalProducerContract<'a>
pub const fn empty() -> TemporalProducerContract<'a>
pub const fn empty() -> TemporalProducerContract<'a>
Empty instance.
pub const fn for_extent(extent: FrameExtent) -> TemporalProducerContract<'a>
pub const fn for_extent(extent: FrameExtent) -> TemporalProducerContract<'a>
For-extent constructor.
pub const fn extent(self) -> Option<FrameExtent>
pub const fn extent(self) -> Option<FrameExtent>
Extent.
pub const fn linear_depth(self) -> Option<LinearDepthView<'a>>
pub const fn linear_depth(self) -> Option<LinearDepthView<'a>>
Linear-depth resource.
pub const fn motion_vectors(self) -> Option<MotionVectorsView<'a>>
pub const fn motion_vectors(self) -> Option<MotionVectorsView<'a>>
Motion-vectors resource.
pub const fn reactive_mask(self) -> Option<ReactiveMaskView<'a>>
pub const fn reactive_mask(self) -> Option<ReactiveMaskView<'a>>
Reactive-mask resource.
pub fn with_linear_depth(
self,
view: LinearDepthView<'a>,
) -> Result<TemporalProducerContract<'a>, TemporalContractError>
pub fn with_linear_depth( self, view: LinearDepthView<'a>, ) -> Result<TemporalProducerContract<'a>, TemporalContractError>
Builder — sets linear-depth.
pub fn with_motion_vectors(
self,
view: MotionVectorsView<'a>,
) -> Result<TemporalProducerContract<'a>, TemporalContractError>
pub fn with_motion_vectors( self, view: MotionVectorsView<'a>, ) -> Result<TemporalProducerContract<'a>, TemporalContractError>
Builder — sets motion-vectors.
pub fn with_reactive_mask(
self,
view: ReactiveMaskView<'a>,
) -> Result<TemporalProducerContract<'a>, TemporalContractError>
pub fn with_reactive_mask( self, view: ReactiveMaskView<'a>, ) -> Result<TemporalProducerContract<'a>, TemporalContractError>
Builder — sets reactive-mask.
pub const fn capabilities(self) -> TemporalProducerCapabilities
pub const fn capabilities(self) -> TemporalProducerCapabilities
Capabilities.
Trait Implementations§
§impl<'a> Clone for TemporalProducerContract<'a>
impl<'a> Clone for TemporalProducerContract<'a>
§fn clone(&self) -> TemporalProducerContract<'a>
fn clone(&self) -> TemporalProducerContract<'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 TemporalProducerContract<'a>
§impl<'a> Default for TemporalProducerContract<'a>
impl<'a> Default for TemporalProducerContract<'a>
§fn default() -> TemporalProducerContract<'a>
fn default() -> TemporalProducerContract<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TemporalProducerContract<'a>
impl<'a> !UnwindSafe for TemporalProducerContract<'a>
impl<'a> Freeze for TemporalProducerContract<'a>
impl<'a> Send for TemporalProducerContract<'a>
impl<'a> Sync for TemporalProducerContract<'a>
impl<'a> Unpin for TemporalProducerContract<'a>
impl<'a> UnsafeUnpin for TemporalProducerContract<'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.