solstice/gl/mod.rs
1pub mod attribute;
2pub mod draw_mode;
3pub mod pixel_format;
4pub mod texture;
5pub mod vertex_winding;
6pub mod wrap_mode;
7
8pub struct TextureFormat {
9 pub internal: u32,
10 pub external: u32,
11 pub ty: u32,
12 pub swizzle: Option<[i32; 4]>,
13}
14
15impl From<(u32, u32, u32)> for TextureFormat {
16 fn from((internal, external, ty): (u32, u32, u32)) -> Self {
17 Self {
18 internal,
19 external,
20 ty,
21 swizzle: None,
22 }
23 }
24}