#[non_exhaustive]pub struct GpuOptions {
pub transparent: bool,
}Expand description
How a Gpu is opened: what its surfaces must be able to do, decided
before the first one exists because some of it is the instance’s.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transparent: boolIts surfaces may be presented with alpha (Renderer::new_in_with,
Renderer::transparent), so a window shows what is behind it
where a frame paints nothing (backlog F126). On Windows this
presents D3D12 through DirectComposition
(Dx12SwapchainKind::DxgiFromVisual), the one D3D12 swapchain that
takes alpha, instead of a swapchain on the window’s handle — where
see_through_by_visual says the window was made for it, and
nowhere else, so there the surfaces stay opaque otherwise; nothing
changes on other platforms. Off by default, so an opaque app keeps
the swapchain it always had.
Implementations§
Source§impl GpuOptions
impl GpuOptions
Sourcepub fn transparent(transparent: bool) -> Self
pub fn transparent(transparent: bool) -> Self
Options whose surfaces may be transparent (Self::transparent).
Trait Implementations§
Source§impl Clone for GpuOptions
impl Clone for GpuOptions
impl Copy for GpuOptions
Source§impl Debug for GpuOptions
impl Debug for GpuOptions
Source§impl Default for GpuOptions
impl Default for GpuOptions
impl Eq for GpuOptions
Source§impl PartialEq for GpuOptions
impl PartialEq for GpuOptions
impl StructuralPartialEq for GpuOptions
Auto Trait Implementations§
impl Freeze for GpuOptions
impl RefUnwindSafe for GpuOptions
impl Send for GpuOptions
impl Sync for GpuOptions
impl Unpin for GpuOptions
impl UnsafeUnpin for GpuOptions
impl UnwindSafe for GpuOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.