core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

sw_span_arrays Struct Reference

#include <s_span.h>


Detailed Description

Arrays of fragment values.

These will either be computed from the span x/xStep values or filled in by glDraw/CopyPixels, etc. These arrays are separated out of sw_span to conserve memory.

Data Fields

GLfloat attribs [FRAG_ATTRIB_MAX][MAX_WIDTH][4]
 Per-fragment attributes (indexed by FRAG_ATTRIB_* tokens).
GLubyte mask [MAX_WIDTH]
 This mask indicates which fragments are alive or culled.
GLenum ChanType
 Color channel type, GL_UNSIGNED_BYTE, GL_FLOAT.
GLubyte rgba8 [MAX_WIDTH][4]
 Attribute arrays that don't fit into attribs[] array above.
GLushort rgba16 [MAX_WIDTH][4]
GLchan(* rgba )[4]
GLint x [MAX_WIDTH]
 either == rgba8 or rgba16
GLint y [MAX_WIDTH]
 fragment Y coords
GLuint z [MAX_WIDTH]
 fragment Z coords
GLuint index [MAX_WIDTH]
 Color indexes.
GLfloat lambda [MAX_TEXTURE_COORD_UNITS][MAX_WIDTH]
 Texture LOD.
GLfloat coverage [MAX_WIDTH]
 Fragment coverage for AA/smoothing.


Field Documentation

GLfloat sw_span_arrays::attribs[FRAG_ATTRIB_MAX][MAX_WIDTH][4]

Per-fragment attributes (indexed by FRAG_ATTRIB_* tokens).

GLubyte sw_span_arrays::mask[MAX_WIDTH]

This mask indicates which fragments are alive or culled.

GLenum sw_span_arrays::ChanType

Color channel type, GL_UNSIGNED_BYTE, GL_FLOAT.

GLubyte sw_span_arrays::rgba8[MAX_WIDTH][4]

Attribute arrays that don't fit into attribs[] array above.

GLushort sw_span_arrays::rgba16[MAX_WIDTH][4]

GLchan(* sw_span_arrays::rgba)[4]

GLint sw_span_arrays::x[MAX_WIDTH]

either == rgba8 or rgba16

fragment X coords

GLint sw_span_arrays::y[MAX_WIDTH]

fragment Y coords

GLuint sw_span_arrays::z[MAX_WIDTH]

fragment Z coords

GLuint sw_span_arrays::index[MAX_WIDTH]

Color indexes.

GLfloat sw_span_arrays::lambda[MAX_TEXTURE_COORD_UNITS][MAX_WIDTH]

Texture LOD.

GLfloat sw_span_arrays::coverage[MAX_WIDTH]

Fragment coverage for AA/smoothing.


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:48:05 2009 for Mesa Software Rasterization (swrast) by  doxygen 1.5.4