api: export Size
from librashader::runtime
This commit is contained in:
parent
e2ac7a1bfa
commit
c948c882ab
|
@ -14,8 +14,7 @@ use windows::Win32::Graphics::Direct3D11::{
|
||||||
pub use librashader::runtime::d3d11::options::FilterChainOptions;
|
pub use librashader::runtime::d3d11::options::FilterChainOptions;
|
||||||
pub use librashader::runtime::d3d11::options::FrameOptions;
|
pub use librashader::runtime::d3d11::options::FrameOptions;
|
||||||
|
|
||||||
use librashader::runtime::Viewport;
|
use librashader::runtime::{Size, Viewport};
|
||||||
use librashader::Size;
|
|
||||||
|
|
||||||
/// OpenGL parameters for the source image.
|
/// OpenGL parameters for the source image.
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
|
|
@ -11,8 +11,8 @@ use std::slice;
|
||||||
|
|
||||||
pub use librashader::runtime::gl::options::FilterChainOptions;
|
pub use librashader::runtime::gl::options::FilterChainOptions;
|
||||||
pub use librashader::runtime::gl::options::FrameOptions;
|
pub use librashader::runtime::gl::options::FrameOptions;
|
||||||
use librashader::runtime::Viewport;
|
use librashader::runtime::{Size, Viewport};
|
||||||
use librashader::Size;
|
|
||||||
|
|
||||||
/// A GL function loader that librashader needs to be initialized with.
|
/// 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;
|
pub type gl_loader_t = unsafe extern "C" fn(*const c_char) -> *const c_void;
|
||||||
|
|
|
@ -92,7 +92,7 @@ pub mod reflect {
|
||||||
#[cfg(feature = "runtime")]
|
#[cfg(feature = "runtime")]
|
||||||
pub mod runtime {
|
pub mod runtime {
|
||||||
pub use librashader_runtime::parameters::FilterChainParameters;
|
pub use librashader_runtime::parameters::FilterChainParameters;
|
||||||
pub use librashader_common::Viewport;
|
pub use librashader_common::{Viewport, Size};
|
||||||
|
|
||||||
#[cfg(feature = "gl")]
|
#[cfg(feature = "gl")]
|
||||||
/// Shader runtime for OpenGL 3.3+.
|
/// 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};
|
||||||
|
|
Loading…
Reference in a new issue