pub struct ResourceDesc {
pub name: String,
pub format: TextureFormat,
pub size: ResourceSize,
pub samples: u32,
pub mips: u32,
pub layers: u32,
pub persistent: bool,
}Expand description
Description of a render graph texture resource.
Fields§
§name: String§format: TextureFormat§size: ResourceSize§samples: u32§mips: u32Mip levels (1 = no mipmapping).
layers: u32Number of array layers.
persistent: boolPersistent: survives across frames (e.g. temporal AA history).
Implementations§
Source§impl ResourceDesc
impl ResourceDesc
pub fn color(name: impl Into<String>, format: TextureFormat) -> Self
pub fn depth(name: impl Into<String>) -> Self
pub fn half_res(self) -> Self
pub fn fixed_size(self, w: u32, h: u32) -> Self
pub fn with_mips(self, mips: u32) -> Self
pub fn persistent(self) -> Self
pub fn msaa(self, samples: u32) -> Self
Trait Implementations§
Source§impl Clone for ResourceDesc
impl Clone for ResourceDesc
Source§fn clone(&self) -> ResourceDesc
fn clone(&self) -> ResourceDesc
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ResourceDesc
impl RefUnwindSafe for ResourceDesc
impl Send for ResourceDesc
impl Sync for ResourceDesc
impl Unpin for ResourceDesc
impl UnsafeUnpin for ResourceDesc
impl UnwindSafe for ResourceDesc
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.