Cogl.Pipeline.prototype.add_snippet

function add_snippet(snippet: Cogl.Snippet): void {
    // Gjs wrapper for cogl_pipeline_add_snippet()
}
  

Adds a shader snippet to pipeline. The snippet will wrap around or replace some part of the pipeline as defined by the hook point in snippet. Note that some hook points are specific to a layer and must be added with Cogl.Pipeline.prototype.add_layer_snippet instead.

Since 1.10

snippet

The Cogl.Snippet to add to the vertex processing hook