Cogl.Pipeline.foreach_layer

### Method

# Cogl Pipelineforeach_layer

#### Declaration [src]

    void
    cogl_pipeline_foreach_layer (
      CoglPipeline* pipeline,
      CoglPipelineLayerCallback callback,
      void* user_data
    )

#### Description [src]

Iterates all the layer indices of the given `pipeline`.

Stability: | Unstable
Available since: | 2.0

#### Parameters

`callback` | `CoglPipelineLayerCallback`
| A `CoglPipelineLayerCallback` to be called for each layer index.
`user_data` | `void*`
| Private data that will be passed to the callback.
| The argument can be `NULL`.
| The data is owned by the caller of the function.