---
name: "ALLEGRO_SHADER"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_SHADER/3alleg5"
---

# ALLEGRO\_SHADER(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_SHADER - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  typedef struct ALLEGRO_SHADER ALLEGRO_SHADER;
  ```

## DESCRIPTION

An ALLEGRO\_SHADER(3alleg5) is a program that runs on the GPU. It combines both a vertex and a pixel shader. (In OpenGL terms, an ALLEGRO\_SHADER(3alleg5) is actually a *program* which has one or more *shaders* attached. This can be confusing.)

The source code for the underlying vertex or pixel shader can be provided either as GLSL or HLSL, depending on the value of ALLEGRO\_SHADER\_PLATFORM(3alleg5) used when creating it.

## SINCE

5\.1.0
