Skip to main content

PresentationSurface

Struct PresentationSurface 

Source
pub struct PresentationSurface<'window> { /* private fields */ }

Implementations§

Source§

impl<'window> PresentationSurface<'window>

Source

pub const fn graphics_present_supported(&self) -> bool

Source

pub fn capabilities(&self) -> Result<PresentationCapabilities>

Source

pub fn swapchain_extent( &self, drawable_extent: [u32; 2], ) -> Result<Option<[u32; 2]>>

Select the valid swapchain extent for one SDL drawable-pixel extent.

None means the window is minimized and callers must defer allocation or acquisition until SDL reports a non-zero drawable extent.

Trait Implementations§

Source§

impl Drop for PresentationSurface<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'window> !Send for PresentationSurface<'window>

§

impl<'window> !Sync for PresentationSurface<'window>

§

impl<'window> Forget for PresentationSurface<'window>

§

impl<'window> Freeze for PresentationSurface<'window>
where *const ArcInner<Device> is !null: Freeze, PhantomData<ArcInner<Device>>: Freeze, PhantomData<&'window SdlWindow>: Freeze,

§

impl<'window> Move for PresentationSurface<'window>

§

impl<'window> RefUnwindSafe for PresentationSurface<'window>
where Atomic<usize>: RefUnwindSafe, Mutex<TransferableAllocator<'static>>: RefUnwindSafe, Condvar: RefUnwindSafe, Mutex<CommandPool>: RefUnwindSafe, Mutex<Option<CommandPool>>: RefUnwindSafe, Atomic<u64>: RefUnwindSafe, Mutex<Vec<u32>>: RefUnwindSafe, Mutex<StoragePool>: RefUnwindSafe, OnceLock<ComputePipeline>: RefUnwindSafe, Mutex<PipelineCreation>: RefUnwindSafe, Mutex<JitFusion>: RefUnwindSafe, Mutex<HashMap<Vec<u8>, Arc<ComputePipeline>>>: RefUnwindSafe,

§

impl<'window> Unpin for PresentationSurface<'window>
where Arc<Device>: Unpin, &'window SdlWindow: Unpin,

§

impl<'window> UnsafeUnpin for PresentationSurface<'window>
where *const ArcInner<Device> is !null: UnsafeUnpin, PhantomData<ArcInner<Device>>: UnsafeUnpin, PhantomData<&'window SdlWindow>: UnsafeUnpin,

§

impl<'window> UnwindSafe for PresentationSurface<'window>
where Arc<Device>: UnwindSafe, &'window SdlWindow: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.