crystal_api/
texture.rs

1use std::sync::Arc;
2
3use crate::proxies::TextureProxy;
4
5/// Stores texture data in GPU
6pub struct Texture {
7    pub(crate) inner: Arc<dyn TextureProxy>,
8}
9
10impl Texture {
11    pub(crate) fn new(proxy: Arc<dyn TextureProxy>) -> Self {
12        Self { inner: proxy }
13    }
14}