api: export Size from librashader::runtime

This commit is contained in:
chyyran 2023-01-13 03:00:45 -05:00
parent e2ac7a1bfa
commit c948c882ab
3 changed files with 5 additions and 6 deletions

View file

@ -14,8 +14,7 @@ use windows::Win32::Graphics::Direct3D11::{
pub use librashader::runtime::d3d11::options::FilterChainOptions;
pub use librashader::runtime::d3d11::options::FrameOptions;
use librashader::runtime::Viewport;
use librashader::Size;
use librashader::runtime::{Size, Viewport};
/// OpenGL parameters for the source image.
#[repr(C)]

View file

@ -11,8 +11,8 @@ use std::slice;
pub use librashader::runtime::gl::options::FilterChainOptions;
pub use librashader::runtime::gl::options::FrameOptions;
use librashader::runtime::Viewport;
use librashader::Size;
use librashader::runtime::{Size, Viewport};
/// A GL function loader that librashader needs to be initialized with.
pub type gl_loader_t = unsafe extern "C" fn(*const c_char) -> *const c_void;

View file

@ -92,7 +92,7 @@ pub mod reflect {
#[cfg(feature = "runtime")]
pub mod runtime {
pub use librashader_runtime::parameters::FilterChainParameters;
pub use librashader_common::Viewport;
pub use librashader_common::{Viewport, Size};
#[cfg(feature = "gl")]
/// Shader runtime for OpenGL 3.3+.
@ -122,4 +122,4 @@ pub mod runtime {
}
}
pub use librashader_common::{FilterMode, ImageFormat, Size, WrapMode};
pub use librashader_common::{FilterMode, ImageFormat, WrapMode};