pub struct OffscreenTargetOptions {
pub color_usage: TextureUsages,
pub depth_usage: TextureUsages,
}Expand description
Configuration options for OffscreenTarget texture creation.
Fields§
§color_usage: TextureUsages§depth_usage: TextureUsagesImplementations§
Source§impl OffscreenTargetOptions
impl OffscreenTargetOptions
Sourcepub fn storage_compatible() -> Self
pub fn storage_compatible() -> Self
Returns options whose color texture includes STORAGE_BINDING (required by compute renderers like Vello).
Sourcepub fn for_format(color_format: TextureFormat) -> Self
pub fn for_format(color_format: TextureFormat) -> Self
Returns default options for color_format, enabling STORAGE_BINDING for Rgba8Unorm.
Trait Implementations§
Source§impl Clone for OffscreenTargetOptions
impl Clone for OffscreenTargetOptions
impl Copy for OffscreenTargetOptions
Source§impl Debug for OffscreenTargetOptions
impl Debug for OffscreenTargetOptions
Source§impl Default for OffscreenTargetOptions
impl Default for OffscreenTargetOptions
impl Eq for OffscreenTargetOptions
Source§impl PartialEq for OffscreenTargetOptions
impl PartialEq for OffscreenTargetOptions
impl StructuralPartialEq for OffscreenTargetOptions
Auto Trait Implementations§
impl Forget for OffscreenTargetOptions
impl Freeze for OffscreenTargetOptionswhere
InternalBitFlags: Freeze,
impl Move for OffscreenTargetOptions
impl RefUnwindSafe for OffscreenTargetOptionswhere
InternalBitFlags: RefUnwindSafe,
impl Send for OffscreenTargetOptionswhere
InternalBitFlags: Send,
impl Sync for OffscreenTargetOptionswhere
InternalBitFlags: Sync,
impl Unpin for OffscreenTargetOptionswhere
InternalBitFlags: Unpin,
impl UnsafeUnpin for OffscreenTargetOptionswhere
InternalBitFlags: UnsafeUnpin,
impl UnwindSafe for OffscreenTargetOptionswhere
InternalBitFlags: UnwindSafe,
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
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
Compare self to
key and return true if they are equal.