#[repr(C)]pub struct FilterChainOptionsWgpu {
pub force_no_mipmaps: bool,
pub enable_cache: bool,
pub adapter_info: Option<AdapterInfo>,
}
Expand description
Options for filter chain creation.
Fields§
§force_no_mipmaps: bool
Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
enable_cache: bool
Enable the shader object cache. Shaders will be loaded from the cache if this is enabled.
adapter_info: Option<AdapterInfo>
WGPU adapter info for use to determine the name of the pipeline cache index. If this is not provided, then it will fallback to a default “wgpu” index, which may clobber the cache for a different device using WGPU.
Trait Implementations§
Source§impl Clone for FilterChainOptionsWgpu
impl Clone for FilterChainOptionsWgpu
Source§fn clone(&self) -> FilterChainOptionsWgpu
fn clone(&self) -> FilterChainOptionsWgpu
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FilterChainOptionsWgpu
impl Debug for FilterChainOptionsWgpu
Source§impl Default for FilterChainOptionsWgpu
impl Default for FilterChainOptionsWgpu
Source§fn default() -> FilterChainOptionsWgpu
fn default() -> FilterChainOptionsWgpu
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterChainOptionsWgpu
impl RefUnwindSafe for FilterChainOptionsWgpu
impl Send for FilterChainOptionsWgpu
impl Sync for FilterChainOptionsWgpu
impl Unpin for FilterChainOptionsWgpu
impl UnwindSafe for FilterChainOptionsWgpu
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more