pub struct TextureDesc {
pub domain: TextureDomain,
pub format: TextureFormat,
pub usage: TextureUsages,
}Fields§
§domain: TextureDomain§format: TextureFormat§usage: TextureUsagesImplementations§
Source§impl TextureDesc
impl TextureDesc
pub fn render_target(size: Size, format: TextureFormat) -> Self
pub fn sampled(size: Size, format: TextureFormat) -> Self
pub fn storage(size: Size, format: TextureFormat) -> Self
Trait Implementations§
Source§impl Clone for TextureDesc
impl Clone for TextureDesc
Source§fn clone(&self) -> TextureDesc
fn clone(&self) -> TextureDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextureDesc
impl Debug for TextureDesc
Source§impl PartialEq for TextureDesc
impl PartialEq for TextureDesc
Source§fn eq(&self, other: &TextureDesc) -> bool
fn eq(&self, other: &TextureDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TextureDesc
impl Eq for TextureDesc
impl StructuralPartialEq for TextureDesc
Auto Trait Implementations§
impl Freeze for TextureDesc
impl RefUnwindSafe for TextureDesc
impl Send for TextureDesc
impl Sync for TextureDesc
impl Unpin for TextureDesc
impl UnsafeUnpin for TextureDesc
impl UnwindSafe for TextureDesc
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<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.