[−][src]Struct dxplr::dxgi::SwapChain2
Implementations
impl SwapChain2
[src]
pub fn as_swapchain(&self) -> SwapChain
[src]
impl SwapChain2
[src]
pub fn as_swapchain1(&self) -> SwapChain1
[src]
Trait Implementations
impl Clone for SwapChain2
[src]
pub fn clone(&self) -> SwapChain2
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SwapChain2
[src]
impl Eq for SwapChain2
[src]
impl ISwapChain for SwapChain2
[src]
pub fn get_buffer<T: Interface>(&self, index: u32) -> Result<T, HResult>
[src]
pub fn get_containing_output(&self) -> Result<Output, HResult>
[src]
pub fn get_desc(
&self
) -> Result<SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, Usage, u32, *const c_void, bool, SwapEffect>, HResult>
[src]
&self
) -> Result<SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, Usage, u32, *const c_void, bool, SwapEffect>, HResult>
pub fn get_frame_statistics(&self) -> Result<FrameStatistics, HResult>
[src]
pub fn get_fullscreen_state(&self) -> Result<(bool, Option<Output>), HResult>
[src]
pub fn get_last_present_count(&self) -> Result<u32, HResult>
[src]
pub fn present(
&self,
interval: u32,
flags: Option<Present>
) -> Result<(), HResult>
[src]
&self,
interval: u32,
flags: Option<Present>
) -> Result<(), HResult>
pub fn resize_buffers(
&self,
buffer_count: u32,
width: u32,
height: u32,
format: Format,
flags: Option<SwapChainFlag>
) -> Result<(), HResult>
[src]
&self,
buffer_count: u32,
width: u32,
height: u32,
format: Format,
flags: Option<SwapChainFlag>
) -> Result<(), HResult>
pub fn set_fullscreen_state(
&self,
fullscreen: bool,
target: Option<&Output>
) -> Result<(), HResult>
[src]
&self,
fullscreen: bool,
target: Option<&Output>
) -> Result<(), HResult>
impl ISwapChain1 for SwapChain2
[src]
pub fn get_background_color(&self) -> Result<RGBA, HResult>
[src]
pub fn get_core_window<T: Interface>(&self) -> Result<T, HResult>
[src]
pub fn get_desc1(
&self
) -> Result<SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>, HResult>
[src]
&self
) -> Result<SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>, HResult>
pub fn get_fullscreen_desc(&self) -> Result<SwapChainFullscreenDesc, HResult>
[src]
pub fn get_hwnd(&self) -> Result<HWND, HResult>
[src]
pub fn get_restrict_to_output(&self) -> Result<Output, HResult>
[src]
pub fn get_rotation(&self) -> Result<ModeRotation, HResult>
[src]
pub fn is_temporary_mono_supported(&self) -> bool
[src]
pub fn present1(
&self,
interval: u32,
flags: Option<Present>,
parameters: &PresentParameters<'_>
) -> Result<(), HResult>
[src]
&self,
interval: u32,
flags: Option<Present>,
parameters: &PresentParameters<'_>
) -> Result<(), HResult>
pub fn set_background_color(&self, rgba: RGBA) -> Result<(), HResult>
[src]
pub fn set_rotation(&self, rotation: ModeRotation) -> Result<(), HResult>
[src]
impl ISwapChain2 for SwapChain2
[src]
pub fn get_frame_latency_waitable_object(&self) -> HANDLE
[src]
pub fn get_matrix_transform(&self) -> Result<Matrix3x2f, HResult>
[src]
pub fn get_maximum_frame_latency(&self) -> Result<u32, HResult>
[src]
pub fn get_source_size(&self) -> Result<SourceSize, HResult>
[src]
pub fn set_matrix_transform(&self, m: Matrix3x2f) -> Result<(), HResult>
[src]
pub fn set_maximum_frame_latency(&self, latency: u32) -> Result<(), HResult>
[src]
pub fn set_source_size(&self, source_size: SourceSize) -> Result<(), HResult>
[src]
impl Interface for SwapChain2
[src]
type APIType = IDXGISwapChain2
pub fn new(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn uuidof() -> Guid
[src]
pub fn as_ptr(&self) -> *mut Self::APIType
[src]
pub fn as_com_ptr(&self) -> &ComPtr<Self::APIType>
[src]
pub fn as_unknown(&self) -> *mut IUnknown
[src]
pub fn from_com_ptr(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn query_interface<T: Interface>(&self) -> Result<T, HResult>
[src]
impl PartialEq<SwapChain2> for SwapChain2
[src]
pub fn eq(&self, other: &SwapChain2) -> bool
[src]
pub fn ne(&self, other: &SwapChain2) -> bool
[src]
impl Send for SwapChain2
[src]
impl StructuralEq for SwapChain2
[src]
impl StructuralPartialEq for SwapChain2
[src]
impl Sync for SwapChain2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,