.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ALLEGRO_SHADER" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP ALLEGRO_SHADER - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include typedef struct ALLEGRO_SHADER ALLEGRO_SHADER; \f[R] .fi .SH DESCRIPTION .PP 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 \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(3alleg5) used when creating it. .SH SINCE .PP 5.1.0