pub struct ShaderCase {
pub version: (u32, u32),
pub meter: u8,
pub blob: Vec<u8>,
}Expand description
A shader program blob and the Unity version selecting its entry table.
Layout: major and minor version, each a little-endian u32, the meter
selector (one byte), then the blob through the end. A header cut short
decodes to the default case.
Fields§
§version: (u32, u32)Unity’s major and minor version (the table changes at 2019.3).
meter: u80 uses the fuzz memory bound; another value uses meter² × 64 bytes.
blob: Vec<u8>The little-endian shader program blob.
Implementations§
Trait Implementations§
Source§impl Clone for ShaderCase
impl Clone for ShaderCase
Source§impl Debug for ShaderCase
impl Debug for ShaderCase
Source§impl Default for ShaderCase
impl Default for ShaderCase
impl Eq for ShaderCase
Source§impl PartialEq for ShaderCase
impl PartialEq for ShaderCase
impl StructuralPartialEq for ShaderCase
Auto Trait Implementations§
impl Forget for ShaderCase
impl Freeze for ShaderCase
impl Move for ShaderCase
impl RefUnwindSafe for ShaderCase
impl Send for ShaderCase
impl Sync for ShaderCase
impl Unpin for ShaderCase
impl UnsafeUnpin for ShaderCase
impl UnwindSafe for ShaderCase
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