Cogl.shader_get_type
Description: Reference for Cogl.shader_get_type

### Function

# Coglshader_get_type

#### Declaration [src]

    CoglShaderType
    cogl_shader_get_type (
      CoglHandle handle
    )

#### Description [src]

Retrieves the type of a shader `CoglHandle`.

Deprecated since: | 1.16
Use `CoglSnippet` api.

#### Parameters

`handle` | `CoglHandle`
| `CoglHandle` for a shader.

#### Return value

Returns: | `CoglShaderType`
| `COGL_SHADER_TYPE_VERTEX` if the shader is a vertex processor or `COGL_SHADER_TYPE_FRAGMENT` if the shader is a frament processor.