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

prog_src_register Struct Reference

#include <prog_instruction.h>


Detailed Description

Instruction source register.

Data Fields

GLuint File:4
 One of the PROGRAM_* register file values.
GLint Index:(INST_INDEX_BITS+1)
 Extra bit here for sign bit.
GLuint Swizzle:12
GLuint RelAddr:1
GLuint Abs:1
 Take the component-wise absolute value.
GLuint Negate:4
 Post-Abs negation.

Field Documentation

GLuint prog_src_register::File

One of the PROGRAM_* register file values.

GLint prog_src_register::Index

Extra bit here for sign bit.

May be negative for relative addressing.

GLuint prog_src_register::Swizzle

GLuint prog_src_register::RelAddr

GLuint prog_src_register::Abs

Take the component-wise absolute value.

GLuint prog_src_register::Negate

Post-Abs negation.

This will either be NEGATE_NONE or NEGATE_XYZW, except for the SWZ instruction which allows per-component negation.


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