1ALLEGRO_SHADER_TYPE(3)                                  ALLEGRO_SHADER_TYPE(3)
2
3
4

NAME

6       ALLEGRO_SHADER_TYPE - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              typedef enum ALLEGRO_SHADER_TYPE ALLEGRO_SHADER_TYPE;
12

DESCRIPTION

14       Used            with           al_attach_shader_source(3)           and
15       al_attach_shader_source_file(3)  to  specify  how  to   interpret   the
16       attached source.
17
18       ALLEGRO_VERTEX_SHADER
19              A  vertex  shader  is  executed for each vertex it is used with.
20              The program will output exactly one vertex at a time.
21
22              When Allegro's graphics are being used then in addition  to  all
23              vertices  of  primitives  from  the primitives addon, each drawn
24              bitmap also consists of four vertices.
25
26       ALLEGRO_PIXEL_SHADER
27              A pixel shader is executed for each pixel it is used with.   The
28              program  will output exactly one pixel at a time - either in the
29              backbuffer or in the current target bitmap.
30
31              With Allegro's builtin graphics this means  the  shader  is  for
32              example  called  for  each destination pixel of the output of an
33              al_draw_bitmap(3) call.
34
35              A more accurate term for pixel shader would be  fragment  shader
36              since  one  final  pixel in the target bitmap is not necessarily
37              composed of only a single output but of multiple fragments  (for
38              example when multi-sampling is being used).
39

SINCE

41       5.1.0
42
43
44
45Allegro reference manual                                ALLEGRO_SHADER_TYPE(3)
Impressum