1 2 3 4 5 6 7 8
use crate::Resource; use crate::TextureFormat; pub trait Texture : Resource { fn get_type(&self) -> u32; fn get_format(&self) -> &TextureFormat; }
1 2 3 4 5 6 7 8
use crate::Resource; use crate::TextureFormat; pub trait Texture : Resource { fn get_type(&self) -> u32; fn get_format(&self) -> &TextureFormat; }