pub struct Texture {
pub width: i128,
pub height: i128,
pub format: i128,
pub image_data: Bytes,
pub stream: Option<Stream>,
pub platform_blob: Option<Blob>,
}Expand description
A Texture2D’s fields, as the cutter reads them: the integers wide, as
read, narrowed only where section 3’s answers use them (answer).
Fields§
§width: i128m_Width.
height: i128m_Height.
format: i128m_TextureFormat.
image_data: Bytesimage_data.
stream: Option<Stream>m_StreamData, when present.
platform_blob: Option<Blob>m_PlatformBlob, when present.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Texture
impl !RefUnwindSafe for Texture
impl !UnwindSafe for Texture
impl Forget for Texture
impl Move for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
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