windows::Win32::Graphics::CompositionSwapchain

Trait IPresentationManager_Impl

pub trait IPresentationManager_Impl: IUnknownImpl {
Show 13 methods // Required methods fn AddBufferFromResource( &self, resource: Ref<'_, IUnknown>, ) -> Result<IPresentationBuffer>; fn CreatePresentationSurface( &self, compositionsurfacehandle: HANDLE, ) -> Result<IPresentationSurface>; fn GetNextPresentId(&self) -> u64; fn SetTargetTime(&self, targettime: &SystemInterruptTime) -> Result<()>; fn SetPreferredPresentDuration( &self, preferredduration: &SystemInterruptTime, deviationtolerance: &SystemInterruptTime, ) -> Result<()>; fn ForceVSyncInterrupt(&self, forcevsyncinterrupt: u8) -> Result<()>; fn Present(&self) -> Result<()>; fn GetPresentRetiringFence( &self, riid: *const GUID, fence: *mut *mut c_void, ) -> Result<()>; fn CancelPresentsFrom(&self, presentidtocancelfrom: u64) -> Result<()>; fn GetLostEvent(&self) -> Result<HANDLE>; fn GetPresentStatisticsAvailableEvent(&self) -> Result<HANDLE>; fn EnablePresentStatisticsKind( &self, presentstatisticskind: PresentStatisticsKind, enabled: u8, ) -> Result<()>; fn GetNextPresentStatistics(&self) -> Result<IPresentStatistics>;
}

Required Methods§

fn AddBufferFromResource( &self, resource: Ref<'_, IUnknown>, ) -> Result<IPresentationBuffer>

fn CreatePresentationSurface( &self, compositionsurfacehandle: HANDLE, ) -> Result<IPresentationSurface>

fn GetNextPresentId(&self) -> u64

fn SetTargetTime(&self, targettime: &SystemInterruptTime) -> Result<()>

fn SetPreferredPresentDuration( &self, preferredduration: &SystemInterruptTime, deviationtolerance: &SystemInterruptTime, ) -> Result<()>

fn ForceVSyncInterrupt(&self, forcevsyncinterrupt: u8) -> Result<()>

fn Present(&self) -> Result<()>

fn GetPresentRetiringFence( &self, riid: *const GUID, fence: *mut *mut c_void, ) -> Result<()>

fn CancelPresentsFrom(&self, presentidtocancelfrom: u64) -> Result<()>

fn GetLostEvent(&self) -> Result<HANDLE>

fn GetPresentStatisticsAvailableEvent(&self) -> Result<HANDLE>

fn EnablePresentStatisticsKind( &self, presentstatisticskind: PresentStatisticsKind, enabled: u8, ) -> Result<()>

fn GetNextPresentStatistics(&self) -> Result<IPresentStatistics>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§