pub struct TemporalResolveGpu(/* private fields */);Implementations§
Source§impl TemporalResolveGpu
impl TemporalResolveGpu
pub fn history_valid(&self) -> bool
pub fn try_new( device: &Device, width: u32, height: u32, scene_format: TextureFormat, output_format: TextureFormat, ) -> Option<Self>
pub fn record_scheduled_output( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, inputs: TemporalResolveInputs<'_, '_>, target: &TextureView, schedule: TemporalOutputSchedule, exposure_ev: f32, white_balance_gains: [f32; 3], surface_is_srgb: bool, ) -> bool
Methods from Deref<Target = TemporalResolveGpu<VramReservation<'static>>>§
pub fn history_valid(&self) -> bool
pub fn history_valid(&self) -> bool
true when the history buffer holds a valid previous frame.
pub fn resolved_ready(&self) -> bool
pub fn resolved_ready(&self) -> bool
true when the resolved output is ready.
pub fn submission_state(&self) -> TemporalSubmissionState
pub fn submission_state(&self) -> TemporalSubmissionState
Current submission state.
pub fn linear_depth_view(&self) -> &TextureView
pub fn linear_depth_view(&self) -> &TextureView
The renderer-owned current-frame linear-depth producer target.
pub fn record_linear_depth_producer(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
scene_depth: &TextureView,
near_plane: f32,
far_plane: f32,
) -> bool
pub fn record_linear_depth_producer( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, scene_depth: &TextureView, near_plane: f32, far_plane: f32, ) -> bool
Convert the authoritative depth attachment into view-space linear depth.
This pass is recorded after opaque/transparent scene rendering and before temporal resolve. It never treats the depth attachment itself as a colour view, so the producer contract remains valid on portable WebGPU backends.
pub fn invalidate_history(&mut self)
pub fn invalidate_history(&mut self)
Discard history after a resize, camera cut, seek, or device recovery.
pub fn resolved_view(&self) -> &TextureView
pub fn resolved_view(&self) -> &TextureView
The scene-linear resolve target for an output-chain handoff.
pub fn record_resolve(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
inputs: TemporalResolveInputs<'_, '_>,
reset_history: bool,
publish_history: bool,
) -> bool
pub fn record_resolve( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, inputs: TemporalResolveInputs<'_, '_>, reset_history: bool, publish_history: bool, ) -> bool
Record one resolve and, when requested, publish colour and linear depth history.
Every producer view is mandatory. The method returns false for an extent
mismatch and records no commands, which is the fail-closed path for a
caller that has not yet synchronized its attachments.
pub fn record_scheduled_output(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
inputs: TemporalResolveInputs<'_, '_>,
target: &TextureView,
schedule: TemporalOutputSchedule,
exposure_ev: f32,
white_balance_gains: [f32; 3],
surface_is_srgb: bool,
) -> bool
pub fn record_scheduled_output( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, inputs: TemporalResolveInputs<'_, '_>, target: &TextureView, schedule: TemporalOutputSchedule, exposure_ev: f32, white_balance_gains: [f32; 3], surface_is_srgb: bool, ) -> bool
Record the complete renderer-owned temporal handoff in schedule order.
This is the explicit host submission seam: the host supplies all producer views and an output target, while this owner records resolve, history publication, and final output in that order. A disabled or incomplete schedule fails closed before any command is recorded.
pub fn scheduled_output_is_admissible(
&self,
extent: (u32, u32),
schedule: TemporalOutputSchedule,
exposure_ev: f32,
white_balance_gains: [f32; 3],
) -> bool
pub fn scheduled_output_is_admissible( &self, extent: (u32, u32), schedule: TemporalOutputSchedule, exposure_ev: f32, white_balance_gains: [f32; 3], ) -> bool
Preflight a scheduled submission before an adapter records any renderer-owned producer passes. The host extent is the only attachment metadata available at this API boundary; WebGPU validates the actual texture-view dimensions when the command buffer is submitted.
pub fn record_final_output(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
target: &TextureView,
exposure_ev: f32,
white_balance_gains: [f32; 3],
surface_is_srgb: bool,
) -> bool
pub fn record_final_output( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, target: &TextureView, exposure_ev: f32, white_balance_gains: [f32; 3], surface_is_srgb: bool, ) -> bool
Record the existing versioned SDR transform against the resolved scene.
This is an explicit handoff, not an automatic second output pass. Hosts
must choose either this handoff or the existing OutputChain composite.
Trait Implementations§
Source§impl Deref for TemporalResolveGpu
impl Deref for TemporalResolveGpu
Auto Trait Implementations§
impl !RefUnwindSafe for TemporalResolveGpu
impl !UnwindSafe for TemporalResolveGpu
impl Freeze for TemporalResolveGpu
impl Send for TemporalResolveGpu
impl Sync for TemporalResolveGpu
impl Unpin for TemporalResolveGpu
impl UnsafeUnpin for TemporalResolveGpu
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>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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> ⓘ
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> ⓘ
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