Cogl.shader_source
Description: Reference for Cogl.shader_source

### Function

# Coglshader_source

#### Declaration [src]

    void
    cogl_shader_source (
      CoglHandle shader,
      const char* source
    )

#### Description [src]

Replaces the current source associated with a shader with a new one.

Please see above for a description of the recommended format for the shader code.

Deprecated since: | 1.16
Use `CoglSnippet` api.

#### Parameters

`shader` | `CoglHandle`
| `CoglHandle` for a shader.
`source` | `const char*`
| Shader source.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.