Cogl.Pipeline.prototype.copy
function copy(): Cogl.Pipeline {
// Gjs wrapper for cogl_pipeline_copy()
}
Creates a new pipeline with the configuration copied from the source pipeline.
We would strongly advise developers to always aim to use Cogl.Pipeline.prototype.copy instead of Cogl.Pipeline.new whenever there will be any similarity between two pipelines. Copying a pipeline helps Cogl keep track of a pipelines ancestry which we may use to help minimize GPU state changes.
Since 2.0
- Returns
a pointer to the newly allocated Cogl.Pipeline