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

gl_program Struct Reference

#include <mtypes.h>


Detailed Description

Base class for any kind of program object.

Data Fields

GLuint Id
GLubyte * String
 Null-terminated program text.
GLint RefCount
GLenum Target
 GL_VERTEX/FRAGMENT_PROGRAM_ARB, GL_FRAGMENT_PROGRAM_NV.
GLenum Format
 String encoding format.
GLboolean Resident
struct prog_instructionInstructions
GLbitfield InputsRead
 Bitmask of which input regs are read.
GLbitfield OutputsWritten
 Bitmask of which output regs are written to.
GLbitfield InputFlags [MAX_PROGRAM_INPUTS]
 PROG_PARAM_BIT_x flags.
GLbitfield OutputFlags [MAX_PROGRAM_OUTPUTS]
 PROG_PARAM_BIT_x flags.
GLbitfield TexturesUsed [MAX_TEXTURE_UNITS]
 TEXTURE_x_BIT bitmask.
GLbitfield SamplersUsed
 Bitfield of which samplers are used.
GLbitfield ShadowSamplers
 Texture units used for shadow sampling.
struct gl_program_parameter_listParameters
 Named parameters, constants, etc.
GLfloat LocalParams [MAX_PROGRAM_LOCAL_PARAMS][4]
 Numbered local parameters.
struct gl_program_parameter_listVarying
 Vertex/fragment shader varying vars.
struct gl_program_parameter_listAttributes
 Vertex program user-defined attributes.
GLubyte SamplerUnits [MAX_SAMPLERS]
 Map from sampler unit to texture unit (set by glUniform1i()).
gl_texture_index SamplerTargets [MAX_SAMPLERS]
 Which texture target is being sampled (TEXTURE_1D/2D/3D/etc_INDEX).
GLuint NumInstructions
 Logical counts.
GLuint NumTemporaries
GLuint NumParameters
GLuint NumAttributes
GLuint NumAddressRegs
GLuint NumAluInstructions
GLuint NumTexInstructions
GLuint NumTexIndirections
GLuint NumNativeInstructions
 Native, actual h/w counts.
GLuint NumNativeTemporaries
GLuint NumNativeParameters
GLuint NumNativeAttributes
GLuint NumNativeAddressRegs
GLuint NumNativeAluInstructions
GLuint NumNativeTexInstructions
GLuint NumNativeTexIndirections

Field Documentation

GLuint gl_program::Id

GLubyte* gl_program::String

Null-terminated program text.

GLint gl_program::RefCount

GLenum gl_program::Target

GL_VERTEX/FRAGMENT_PROGRAM_ARB, GL_FRAGMENT_PROGRAM_NV.

GLenum gl_program::Format

String encoding format.

GLboolean gl_program::Resident

struct prog_instruction* gl_program::Instructions [read]

GLbitfield gl_program::InputsRead

Bitmask of which input regs are read.

GLbitfield gl_program::OutputsWritten

Bitmask of which output regs are written to.

GLbitfield gl_program::InputFlags[MAX_PROGRAM_INPUTS]

PROG_PARAM_BIT_x flags.

GLbitfield gl_program::OutputFlags[MAX_PROGRAM_OUTPUTS]

PROG_PARAM_BIT_x flags.

GLbitfield gl_program::TexturesUsed[MAX_TEXTURE_UNITS]

TEXTURE_x_BIT bitmask.

GLbitfield gl_program::SamplersUsed

Bitfield of which samplers are used.

GLbitfield gl_program::ShadowSamplers

Texture units used for shadow sampling.

struct gl_program_parameter_list* gl_program::Parameters [read]

Named parameters, constants, etc.

from program text

GLfloat gl_program::LocalParams[MAX_PROGRAM_LOCAL_PARAMS][4]

Numbered local parameters.

struct gl_program_parameter_list* gl_program::Varying [read]

Vertex/fragment shader varying vars.

struct gl_program_parameter_list* gl_program::Attributes [read]

Vertex program user-defined attributes.

GLubyte gl_program::SamplerUnits[MAX_SAMPLERS]

Map from sampler unit to texture unit (set by glUniform1i()).

gl_texture_index gl_program::SamplerTargets[MAX_SAMPLERS]

Which texture target is being sampled (TEXTURE_1D/2D/3D/etc_INDEX).

GLuint gl_program::NumInstructions

Logical counts.

GLuint gl_program::NumTemporaries

GLuint gl_program::NumParameters

GLuint gl_program::NumAttributes

GLuint gl_program::NumAddressRegs

GLuint gl_program::NumAluInstructions

GLuint gl_program::NumTexInstructions

GLuint gl_program::NumTexIndirections

GLuint gl_program::NumNativeInstructions

Native, actual h/w counts.

GLuint gl_program::NumNativeTemporaries

GLuint gl_program::NumNativeParameters

GLuint gl_program::NumNativeAttributes

GLuint gl_program::NumNativeAddressRegs

GLuint gl_program::NumNativeAluInstructions

GLuint gl_program::NumNativeTexInstructions

GLuint gl_program::NumNativeTexIndirections


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:47:47 2009 for Mesa Main by  doxygen 1.5.4