Cogl.Snippet.prototype.set_replace

function set_replace(replace: String): void {
    // Gjs wrapper for cogl_snippet_set_replace()
}
  

Sets a source string that will be used instead of any generated source code or any previous snippets for this hook point. Please see the documentation of each hook point in Cogl.Pipeline for a description of how this string should be used.

This function should only be called before the snippet is attached to its first pipeline. After that the snippet should be considered immutable.

Since 1.10

replace

The new source string for the replace section of this snippet.