pub fn add_layer_snippet(&self, layer: i32, snippet: &Snippet) {
        unsafe {
            ffi::cogl_pipeline_add_layer_snippet(
                self.to_glib_none().0,
                layer,
                snippet.to_glib_none().0,
            );
        }
    }
/// Adds a shader snippet that will hook on to the given layer of the
/// pipeline. The exact part of the pipeline that the snippet wraps
/// around depends on the hook that is given to
/// `Snippet::new`. Note that some hooks can't be used with a layer
/// and need to be added with `Pipeline::add_snippet` instead.
/// ## `layer`
/// The layer to hook the snippet to
/// ## `snippet`
/// A `Snippet`
Adds a shader snippet that will hook on to the given layer of the
pipeline. The exact part of the pipeline that the snippet wraps
around depends on the hook that is given to
`Snippet::new`. Note that some hooks can't be used with a layer
and need to be added with `Pipeline::add_snippet` instead.
Adds a shader snippet that will hook on to the given layer of the pipeline . The exact part of the pipeline that the snippet wraps around depends on the hook that is given to ` Snippet :: new ` . Note that some hooks can ' t be used with a layer and need to be added with ` Pipeline :: add_snippet ` instead .
pub fn add_layer_snippet(&self, layer: i32, snippet: &Snippet) {
        unsafe {
            ffi::cogl_pipeline_add_layer_snippet(
                self.to_glib_none().0,
                layer,
                snippet.to_glib_none().0,
            );
        }
    }
pub fn add_layer_snippet ( & self , layer : i32 , snippet : & Snippet ) { unsafe { ffi :: cogl_pipeline_add_layer_snippet ( self . to_glib_none ( ) . 0 , layer , snippet . to_glib_none ( ) . 0 , ) ; } }
Adds a shader snippet that will hook on to the given layer of the
pipeline.
Adds a shader snippet that will hook on to the given layer of the pipeline .
&self
layer
i32
snippet
&Snippet
&self
layer
i32
snippet
&Snippet
`layer`
The layer to hook the snippet to
The layer to hook the snippet to
`snippet`
None