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

prog_dst_register Struct Reference

#include <prog_instruction.h>


Detailed Description

Instruction destination register.

Data Fields

GLuint File:4
 One of the PROGRAM_* register file values.
GLuint Index:INST_INDEX_BITS
 Unsigned, never negative.
GLuint WriteMask:4
GLuint RelAddr:1
GLuint pad:28
Conditional destination update control.
Since:
NV_fragment_program, NV_fragment_program_option, NV_vertex_program2, NV_vertex_program2_option.


GLuint CondMask:4
 Takes one of the 9 possible condition values (EQ, FL, GT, GE, LE, LT, NE, TR, or UN).
GLuint CondSwizzle:12
 Condition code swizzle value.
GLuint CondSrc:1
 Selects the condition code register to use for conditional destination update masking.

Field Documentation

GLuint prog_dst_register::File

One of the PROGRAM_* register file values.

GLuint prog_dst_register::Index

Unsigned, never negative.

GLuint prog_dst_register::WriteMask

GLuint prog_dst_register::RelAddr

GLuint prog_dst_register::CondMask

Takes one of the 9 possible condition values (EQ, FL, GT, GE, LE, LT, NE, TR, or UN).

Dest reg is only written to if the matching (swizzled) condition code value passes. When a conditional update mask is not specified, this will be COND_TR.

GLuint prog_dst_register::CondSwizzle

Condition code swizzle value.

GLuint prog_dst_register::CondSrc

Selects the condition code register to use for conditional destination update masking.

In NV_fragmnet_program or NV_vertex_program2 mode, only condition code register 0 is available. In NV_vertex_program3 mode, condition code registers 0 and 1 are available.

GLuint prog_dst_register::pad


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:48:02 2009 for Mesa Vertex and Fragment Program code by  doxygen 1.5.4