2022-12-04 11:55:27 +11:00
|
|
|
use std::ptr::NonNull;
|
2022-12-04 10:32:10 +11:00
|
|
|
use librashader::presets::ShaderPreset;
|
|
|
|
use crate::error::LibrashaderError;
|
|
|
|
|
2022-12-04 11:55:27 +11:00
|
|
|
pub type libra_shader_preset_t = Option<NonNull<ShaderPreset>>;
|
2022-12-04 10:32:10 +11:00
|
|
|
pub type libra_error_t = *const LibrashaderError;
|
|
|
|
|
|
|
|
// #[cfg(feature = "runtime-opengl")]
|
2022-12-04 11:55:27 +11:00
|
|
|
pub type libra_gl_filter_chain_t = Option<NonNull<librashader::runtime::gl::FilterChainGL>>;
|
2022-12-04 10:56:57 +11:00
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
pub struct libra_viewport_t {
|
|
|
|
pub x: f32,
|
|
|
|
pub y: f32,
|
|
|
|
pub width: u32,
|
|
|
|
pub height: u32,
|
|
|
|
}
|