Struct tridify_rs::Texture
source · pub struct Texture {
pub desc: TextureDesc,
/* private fields */
}
Expand description
GPU texture handle.
Fields§
§desc: TextureDesc
Implementations§
source§impl Texture
impl Texture
pub fn from_path(graphics: &impl Graphics, path: &Path) -> Self
pub fn new(graphics: &impl Graphics, desc: TextureDesc) -> Self
sourcepub fn lazy_write_data(&self, graphics: &impl Graphics, data: &[u8])
pub fn lazy_write_data(&self, graphics: &impl Graphics, data: &[u8])
Writes data into the texture lazily, which means it won’t be done until all GPU commands are sent.