[][src]Enum vxdraw::dyntex::ImgData

pub enum ImgData<'a> {
    PNGBytes(&'a [u8]),
    RawBytes {
        width: usize,
        height: usize,
        bytes: &'a [u8],
    },
}

Specify the type of incoming texture data

Variants

PNGBytes(&'a [u8])

Raw PNG bytes, no size is needed as this is included in the bytestream

RawBytes

Raw RGBA8 bytes

Fields of RawBytes

width: usize

Width of the image in pixels

height: usize

Height of the image in pixels

bytes: &'a [u8]

Bytes of the image, if there is a width/height mismatch, the image will be truncated or tiled (extended)

Auto Trait Implementations

impl<'a> Unpin for ImgData<'a>

impl<'a> Sync for ImgData<'a>

impl<'a> Send for ImgData<'a>

impl<'a> UnwindSafe for ImgData<'a>

impl<'a> RefUnwindSafe for ImgData<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Supports<T> for T[src]

impl<T> SetParameter for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,