Struct librashader_runtime_gl::FilterChainGL
source · pub struct FilterChainGL { /* private fields */ }
Expand description
An OpenGL filter chain.
Implementations§
source§impl FilterChainGL
impl FilterChainGL
sourcepub unsafe fn load_from_preset(
preset: ShaderPreset,
options: Option<&FilterChainOptionsGL>,
) -> Result<Self>
pub unsafe fn load_from_preset( preset: ShaderPreset, options: Option<&FilterChainOptionsGL>, ) -> Result<Self>
Load a filter chain from a pre-parsed ShaderPreset
.
sourcepub unsafe fn load_from_path(
path: impl AsRef<Path>,
options: Option<&FilterChainOptionsGL>,
) -> Result<Self>
pub unsafe fn load_from_path( path: impl AsRef<Path>, options: Option<&FilterChainOptionsGL>, ) -> Result<Self>
Load the shader preset at the given path into a filter chain.
sourcepub unsafe fn frame(
&mut self,
input: &GLImage,
viewport: &Viewport<'_, &GLFramebuffer>,
frame_count: usize,
options: Option<&FrameOptionsGL>,
) -> Result<()>
pub unsafe fn frame( &mut self, input: &GLImage, viewport: &Viewport<'_, &GLFramebuffer>, frame_count: usize, options: Option<&FrameOptionsGL>, ) -> Result<()>
Process a frame with the input image.
When this frame returns, GL_FRAMEBUFFER
is bound to 0 if not using Direct State Access.
Otherwise, it is untouched.
Trait Implementations§
source§impl FilterChainParameters for FilterChainGL
impl FilterChainParameters for FilterChainGL
source§fn parameters(&self) -> &RuntimeParameters
fn parameters(&self) -> &RuntimeParameters
Get the runtime parameters for this filter chain.
Auto Trait Implementations§
impl !Freeze for FilterChainGL
impl RefUnwindSafe for FilterChainGL
impl Send for FilterChainGL
impl Sync for FilterChainGL
impl Unpin for FilterChainGL
impl UnwindSafe for FilterChainGL
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more