diff options
author | Brian Paul <[email protected]> | 2003-01-14 04:55:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-01-14 04:55:45 +0000 |
commit | 610d59981a9f43fefe29b34ef19c184d28e2bef5 (patch) | |
tree | 6bac42c2fd25b19ed35260538c6d945de8d699d8 /src/mesa/main/config.h | |
parent | cf01d97dc3e23af067dd9633a2bfa61a6a794ce6 (diff) |
First batch of code for GL_NV_fragment_program.
Re-org of some GL_NV_vertex_program code.
Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
Diffstat (limited to 'src/mesa/main/config.h')
-rw-r--r-- | src/mesa/main/config.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 985176f7498..b9e58cde104 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -1,10 +1,10 @@ -/* $Id: config.h,v 1.42 2002/10/16 17:57:51 brianp Exp $ */ +/* $Id: config.h,v 1.43 2003/01/14 04:55:45 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -118,6 +118,14 @@ /* Number of texture units - GL_ARB_multitexture */ #define MAX_TEXTURE_UNITS 8 +/* New: separate numbers of texture coordinates and texture image units. + * These values will eventually replace most instances of MAX_TEXTURE_UNITS. + * We should always have MAX_TEXTURE_COORD_UNITS <= MAX_TEXTURE_IMAGE_UNITS. + * And, GL_MAX_TEXTURE_UNITS <= MAX_TEXTURE_COORD_UNITS. + */ +#define MAX_TEXTURE_COORD_UNITS 8 +#define MAX_TEXTURE_IMAGE_UNITS 8 + /* Maximum viewport/image size: */ #define MAX_WIDTH 2048 #define MAX_HEIGHT 2048 @@ -144,6 +152,21 @@ /* GL_EXT_texture_lod_bias */ #define MAX_TEXTURE_LOD_BIAS 4.0 +/* GL_NV_vertex_program */ +#define MAX_NV_VERTEX_PROGRAM_INSTRUCTIONS 128 +#define MAX_NV_VERTEX_PROGRAM_TEMPS 12 +#define MAX_NV_VERTEX_PROGRAM_PARAMS 96 +#define MAX_NV_VERTEX_PROGRAM_INPUTS 16 +#define MAX_NV_VERTEX_PROGRAM_OUTPUTS 15 + +/* GL_NV_fragment_program */ +#define MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS 128 +#define MAX_NV_FRAGMENT_PROGRAM_TEMPS 96 +#define MAX_NV_FRAGMENT_PROGRAM_PARAMS 64 +#define MAX_NV_FRAGMENT_PROGRAM_INPUTS 12 +#define MAX_NV_FRAGMENT_PROGRAM_OUTPUTS 7 +#define MAX_NV_FRAGMENT_PROGRAM_WRITE_ONLYS 2 + /* @@ -203,5 +226,7 @@ */ #define FEATURE_NV_vertex_program 1 +#define FEATURE_NV_fragment_program 1 + #endif /* CONFIG_H */ |