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 get_enabled_pass_count(&self) -> usize
fn get_enabled_pass_count(&self) -> usize
Gets the number of shader passes enabled at runtime.
source§fn set_enabled_pass_count(&mut self, count: usize)
fn set_enabled_pass_count(&mut self, count: usize)
Sets the number of shader passes enabled at runtime.
source§fn enumerate_parameters(&self) -> Iter<'_, String, f32>
fn enumerate_parameters(&self) -> Iter<'_, String, f32>
Enumerates the active parameters as well as their values in the current filter chain.
Auto Trait Implementations§
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