1 2 3 4 5 6 7 8
pub struct Texture2D {} impl Texture2D { pub fn new(_data: Vec<u8>) -> Self { Texture2D {} } }