Cogl.Pipeline.prototype.add_layer_snippet

function add_layer_snippet(layer: Number(gint), snippet: Cogl.Snippet): void {
    // Gjs wrapper for cogl_pipeline_add_layer_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 Cogl.Snippet.new. Note that some hooks can't be used with a layer and need to be added with Cogl.Pipeline.prototype.add_snippet instead.

Since 1.10

layer

The layer to hook the snippet to

snippet

A Cogl.Snippet