use super::*;
#[derive(Debug)]
pub struct WgpuTexture {
pub texture: Texture,
pub texture_view: TextureView,
}
impl WgpuTexture {
pub fn new(texture: Texture, texture_view: TextureView) -> Self {
Self {
texture,
texture_view,
}
}
pub fn view(&self) -> &TextureView {
&self.texture_view
}
pub fn texture(&self) -> &Texture {
&self.texture
}
}