librashader/librashader-runtime-gl/src/texture.rs
2022-11-30 01:38:05 -05:00

16 lines
349 B
Rust

use crate::framebuffer::GLImage;
use librashader_common::{FilterMode, WrapMode};
#[derive(Default, Debug, Copy, Clone)]
pub struct Texture {
pub image: GLImage,
pub filter: FilterMode,
pub mip_filter: FilterMode,
pub wrap_mode: WrapMode,
}
impl Texture {
pub fn is_bound(&self) -> bool {
self.image.handle != 0
}
}