.\" Automatically generated by Pandoc 3.4 .\" .TH "ALLEGRO_SHADER" "3" "" "Allegro reference manual" .SH NAME ALLEGRO_SHADER \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] \f[B]typedef\f[R] \f[B]struct\f[R] ALLEGRO_SHADER ALLEGRO_SHADER; .EE .SH DESCRIPTION An ALLEGRO_SHADER(3) is a program that runs on the GPU. It combines both a vertex and a pixel shader. (In OpenGL terms, an ALLEGRO_SHADER(3) is actually a \f[I]program\f[R] which has one or more \f[I]shaders\f[R] attached. This can be confusing.) .PP 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(3) used when creating it. .SH SINCE 5.1.0