pub struct TextureCase {
pub format: i32,
pub width: i32,
pub height: i32,
pub platform: i32,
pub meter: u8,
pub blob: Option<Vec<u8>>,
pub data: Vec<u8>,
}Expand description
A Texture2D’s fields, the meter its decode runs under and its data,
for the texture target (unityrs-texture’s select and decode).
Layout: m_TextureFormat, m_Width, m_Height and the platform, each
an i32, little-endian; the meter (a byte); the platform blob, a byte of
length (Self::NO_BLOB for none) and its bytes; then the data, which
runs to the end. An input that stops inside the header is the default
case, and one that stops inside the blob keeps the header alone.
Fields§
§format: i32m_TextureFormat.
width: i32m_Width.
height: i32m_Height.
platform: i32The platform of the file that holds it (a BuildTarget).
meter: u8The meter, by its low two bits: 0 is the fuzz memory bound; 1, 2 and 3 the decode’s charge less 1, the charge, and the charge plus 1.
blob: Option<Vec<u8>>m_PlatformBlob, at most 254 bytes, or none.
data: Vec<u8>The image data, mip 0 first.