pub struct GpuCompositeTarget { /* private fields */ }Expand description
Stateful controller coordinating same-device GPU viewport compositing and independent world vs HUD dirty tracking.
Implementations§
Source§impl GpuCompositeTarget
GPU compositing and isolated world/HUD dirty coordination for GpuCompositeTarget.
impl GpuCompositeTarget
GPU compositing and isolated world/HUD dirty coordination for GpuCompositeTarget.
Sourcepub fn attach_handle(&mut self, handle: GpuTextureHandle, viewport_rect: Rect)
pub fn attach_handle(&mut self, handle: GpuTextureHandle, viewport_rect: Rect)
Attaches a persistent GPU render target handle and logical viewport rectangle.
§Arguments
&Self- Mutable composite target.GpuTextureHandle- Same-device GPU render target handle.Rect- Viewport destination rectangle in root logical coordinates.
Sourcepub fn mark_world_dirty(&mut self)
pub fn mark_world_dirty(&mut self)
Marks the 2D/3D game world render target dirty without forcing unrelated HUD invalidations.
§Arguments
&Self- Mutable composite target.
Sourcepub fn mark_hud_dirty(&mut self)
pub fn mark_hud_dirty(&mut self)
Marks only the overlaid EUV HUD dirty without forcing a full 3D/2D world re-render.
§Arguments
&Self- Mutable composite target.
Sourcepub fn needs_world_render(&self) -> bool
pub fn needs_world_render(&self) -> bool
Sourcepub fn is_hud_only_dirty(&self) -> bool
pub fn is_hud_only_dirty(&self) -> bool
Sourcepub fn resolve_present_path(
&self,
compositor_device_id: u64,
) -> ViewportPresentPath
pub fn resolve_present_path( &self, compositor_device_id: u64, ) -> ViewportPresentPath
Sourcepub fn record_composite_present(
&mut self,
fence_value: u64,
) -> Option<GpuCompositeDescriptor>
pub fn record_composite_present( &mut self, fence_value: u64, ) -> Option<GpuCompositeDescriptor>
Records a single-present GPU composite submission advancing fence and revision telemetry.
§Arguments
&Self- Mutable composite target.u64- Submission fence value associated with this present pass.
§Returns
Option<GpuCompositeDescriptor>- Descriptor for the compositor when the GPU handle is valid.
Sourcepub fn retire_fence(&mut self, fence_value: u64)
pub fn retire_fence(&mut self, fence_value: u64)
Retires completed GPU fences up to fence_value.
§Arguments
&Self- Mutable composite target.u64- Latest completed GPU queue fence value.
Source§impl GpuCompositeTarget
impl GpuCompositeTarget
pub fn get_handle(&self) -> GpuTextureHandle
pub fn get_mut_handle(&mut self) -> &mut GpuTextureHandle
pub fn set_handle(&mut self, val: GpuTextureHandle) -> &mut Self
pub fn get_viewport_rect(&self) -> Rect
pub fn get_mut_viewport_rect(&mut self) -> &mut Rect
pub fn set_viewport_rect(&mut self, val: Rect) -> &mut Self
pub fn get_world_revision(&self) -> u64
pub fn get_mut_world_revision(&mut self) -> &mut u64
pub fn set_world_revision(&mut self, val: u64) -> &mut Self
pub fn get_presented_world_revision(&self) -> u64
pub fn get_mut_presented_world_revision(&mut self) -> &mut u64
pub fn set_presented_world_revision(&mut self, val: u64) -> &mut Self
pub fn get_hud_revision(&self) -> u64
pub fn get_mut_hud_revision(&mut self) -> &mut u64
pub fn set_hud_revision(&mut self, val: u64) -> &mut Self
pub fn get_presented_hud_revision(&self) -> u64
pub fn get_mut_presented_hud_revision(&mut self) -> &mut u64
pub fn set_presented_hud_revision(&mut self, val: u64) -> &mut Self
pub fn get_submitted_fence(&self) -> u64
pub fn get_mut_submitted_fence(&mut self) -> &mut u64
pub fn set_submitted_fence(&mut self, val: u64) -> &mut Self
pub fn get_completed_fence(&self) -> u64
pub fn get_mut_completed_fence(&mut self) -> &mut u64
pub fn set_completed_fence(&mut self, val: u64) -> &mut Self
pub fn get_zero_readback_presents(&self) -> u64
pub fn get_mut_zero_readback_presents(&mut self) -> &mut u64
pub fn set_zero_readback_presents(&mut self, val: u64) -> &mut Self
pub fn get_hud_only_reuses(&self) -> u64
pub fn get_mut_hud_only_reuses(&mut self) -> &mut u64
pub fn set_hud_only_reuses(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for GpuCompositeTarget
impl Clone for GpuCompositeTarget
impl Copy for GpuCompositeTarget
Source§impl Debug for GpuCompositeTarget
impl Debug for GpuCompositeTarget
Source§impl Default for GpuCompositeTarget
impl Default for GpuCompositeTarget
Source§impl PartialEq for GpuCompositeTarget
impl PartialEq for GpuCompositeTarget
impl StructuralPartialEq for GpuCompositeTarget
Auto Trait Implementations§
impl Forget for GpuCompositeTarget
impl Freeze for GpuCompositeTarget
impl Move for GpuCompositeTarget
impl RefUnwindSafe for GpuCompositeTarget
impl Send for GpuCompositeTarget
impl Sync for GpuCompositeTarget
impl Unpin for GpuCompositeTarget
impl UnsafeUnpin for GpuCompositeTarget
impl UnwindSafe for GpuCompositeTarget
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