Struct makepad_widgets::shader::std::TextureDesc
pub struct TextureDesc {
pub format: TextureFormat,
pub width: Option<usize>,
pub height: Option<usize>,
}
Fields§
§format: TextureFormat
§width: Option<usize>
§height: Option<usize>
Trait Implementations§
§impl Clone for TextureDesc
impl Clone for TextureDesc
§fn clone(&self) -> TextureDesc
fn clone(&self) -> TextureDesc
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 more§impl Default for TextureDesc
impl Default for TextureDesc
§fn default() -> TextureDesc
fn default() -> TextureDesc
Returns the “default value” for a type. Read more
§impl PartialEq<TextureDesc> for TextureDesc
impl PartialEq<TextureDesc> for TextureDesc
§fn eq(&self, other: &TextureDesc) -> bool
fn eq(&self, other: &TextureDesc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextureDesc
impl StructuralPartialEq for TextureDesc
Auto Trait Implementations§
impl RefUnwindSafe for TextureDesc
impl Send for TextureDesc
impl Sync for TextureDesc
impl Unpin 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