pub trait dxgi_IDXGISwapChain: dxgi_IDXGIDeviceSubObject {
// Provided methods
fn GetBuffer<T>(&self, buffer_index: u32) -> HrResult<T>
where T: ole_IUnknown { ... }
fn GetContainingOutput(&self) -> HrResult<IDXGIOutput> { ... }
fn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC> { ... }
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS> { ... }
fn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)> { ... }
fn GetLastPresentCount(&self) -> HrResult<u32> { ... }
fn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()> { ... }
fn ResizeBuffers(
&self,
buffer_count: u32,
width: u32,
height: u32,
new_format: DXGI_FORMAT,
swap_chain_flags: DXGI_SWAP_CHAIN_FLAG,
) -> HrResult<()> { ... }
fn ResizeTarget(
&self,
new_target_parameters: &DXGI_MODE_DESC,
) -> HrResult<()> { ... }
fn SetFullscreenState(
&self,
fullscreen: bool,
target: Option<&impl dxgi_IDXGIOutput>,
) -> HrResult<()> { ... }
}
Available on crate features
kernel
and dxgi
only.Expand description
This trait is enabled with the dxgi
feature, and provides methods for
IDXGISwapChain
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
Sourcefn GetBuffer<T>(&self, buffer_index: u32) -> HrResult<T>where
T: ole_IUnknown,
fn GetBuffer<T>(&self, buffer_index: u32) -> HrResult<T>where
T: ole_IUnknown,
IDXGISwapChain::GetBuffer
method.
Sourcefn GetContainingOutput(&self) -> HrResult<IDXGIOutput>
fn GetContainingOutput(&self) -> HrResult<IDXGIOutput>
Sourcefn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC>
fn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC>
IDXGISwapChain::GetDesc
method.
Sourcefn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS>
Sourcefn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)>
fn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)>
Sourcefn GetLastPresentCount(&self) -> HrResult<u32>
fn GetLastPresentCount(&self) -> HrResult<u32>
Sourcefn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()>
fn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()>
IDXGISwapChain::Present
method.
Sourcefn ResizeBuffers(
&self,
buffer_count: u32,
width: u32,
height: u32,
new_format: DXGI_FORMAT,
swap_chain_flags: DXGI_SWAP_CHAIN_FLAG,
) -> HrResult<()>
fn ResizeBuffers( &self, buffer_count: u32, width: u32, height: u32, new_format: DXGI_FORMAT, swap_chain_flags: DXGI_SWAP_CHAIN_FLAG, ) -> HrResult<()>
IDXGISwapChain::ResizeBuffers
method.
Sourcefn ResizeTarget(&self, new_target_parameters: &DXGI_MODE_DESC) -> HrResult<()>
fn ResizeTarget(&self, new_target_parameters: &DXGI_MODE_DESC) -> HrResult<()>
IDXGISwapChain::ResizeTarget
method.
Sourcefn SetFullscreenState(
&self,
fullscreen: bool,
target: Option<&impl dxgi_IDXGIOutput>,
) -> HrResult<()>
fn SetFullscreenState( &self, fullscreen: bool, target: Option<&impl dxgi_IDXGIOutput>, ) -> HrResult<()>
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.