librashader/librashader-runtime-gl/src/framebuffer.rs

16 lines
421 B
Rust
Raw Normal View History

2022-11-30 17:38:05 +11:00
use gl::types::{GLenum, GLuint};
use librashader_common::Size;
2023-01-13 19:19:58 +11:00
/// A handle to an OpenGL texture with format and size information.
///
/// Generally for use as shader resource inputs.
2022-11-21 18:56:03 +11:00
#[derive(Default, Debug, Copy, Clone)]
2022-11-30 16:39:42 +11:00
pub struct GLImage {
2023-01-13 19:19:58 +11:00
/// A GLuint to the texture.
2022-11-21 18:56:03 +11:00
pub handle: GLuint,
2023-01-13 19:19:58 +11:00
/// The format of the texture.
2022-11-21 18:56:03 +11:00
pub format: GLenum,
2023-01-13 19:19:58 +11:00
/// The size of the texture.
2022-11-21 19:01:26 +11:00
pub size: Size<u32>,
2022-11-21 18:56:03 +11:00
}