#include "main/config.h"
Data Structures | |
| struct | asm_symbol |
| struct | asm_vector |
| struct | asm_swizzle_mask |
| struct | asm_src_register |
| struct | asm_instruction |
| struct | asm_parser_state |
| struct | YYLTYPE |
Defines | |
| #define | OPTION_NONE 0 |
| #define | OPTION_FOG_EXP 1 |
| #define | OPTION_FOG_EXP2 2 |
| #define | OPTION_FOG_LINEAR 3 |
| #define | OPTION_NICEST 1 |
| #define | OPTION_FASTEST 2 |
| #define | YYLTYPE_IS_DECLARED 1 |
| #define | YYLTYPE_IS_TRIVIAL 1 |
Typedefs | |
| typedef struct __GLcontextRec | GLcontext |
Enumerations | |
| enum | asm_type { at_none, at_address, at_attrib, at_param, at_temp, at_output } |
Functions | |
| GLboolean | _mesa_parse_arb_program (GLcontext *ctx, GLenum target, const GLubyte *str, GLsizei len, struct asm_parser_state *state) |
| void | _mesa_program_lexer_dtor (void *scanner) |
| void | _mesa_program_lexer_ctor (void **scanner, struct asm_parser_state *state, const char *string, size_t len) |
From program_parse_extra.c | |
| int | _mesa_ARBvp_parse_option (struct asm_parser_state *state, const char *option) |
| Parses and processes an option string to an ARB vertex program. | |
| int | _mesa_ARBfp_parse_option (struct asm_parser_state *state, const char *option) |
| Parses and processes an option string to an ARB fragment program. | |
| int | _mesa_parse_instruction_suffix (const struct asm_parser_state *state, const char *suffix, struct prog_instruction *inst) |
| Parses and processes instruction suffixes. | |
| int | _mesa_parse_cc (const char *s) |
| Parses a condition code name. | |
| #define OPTION_FASTEST 2 |
| #define OPTION_FOG_EXP 1 |
| #define OPTION_FOG_EXP2 2 |
| #define OPTION_FOG_LINEAR 3 |
| #define OPTION_NICEST 1 |
| #define OPTION_NONE 0 |
| #define YYLTYPE_IS_DECLARED 1 |
| #define YYLTYPE_IS_TRIVIAL 1 |
| typedef struct __GLcontextRec GLcontext |
| enum asm_type |
| int _mesa_ARBfp_parse_option | ( | struct asm_parser_state * | state, | |
| const char * | option | |||
| ) |
Parses and processes an option string to an ARB fragment program.
| int _mesa_ARBvp_parse_option | ( | struct asm_parser_state * | state, | |
| const char * | option | |||
| ) |
Parses and processes an option string to an ARB vertex program.
| GLboolean _mesa_parse_arb_program | ( | GLcontext * | ctx, | |
| GLenum | target, | |||
| const GLubyte * | str, | |||
| GLsizei | len, | |||
| struct asm_parser_state * | state | |||
| ) |
| int _mesa_parse_cc | ( | const char * | s | ) |
Parses a condition code name.
The condition code names (e.g., LT, GT, NE) were added to assembly shaders with the GL_NV_fragment_program_option extension. This function converts a string representation into one of the COND_ macros.
COND_ macros defined in prog_instruction.h on success or zero on failure. | int _mesa_parse_instruction_suffix | ( | const struct asm_parser_state * | state, | |
| const char * | suffix, | |||
| struct prog_instruction * | inst | |||
| ) |
Parses and processes instruction suffixes.
Instruction suffixes, such as _SAT, are processed. The relevant bits are set in inst. If suffixes are encountered that are either not known or not supported by the modes and options set in state, zero will be returned.
| void _mesa_program_lexer_ctor | ( | void ** | scanner, | |
| struct asm_parser_state * | state, | |||
| const char * | string, | |||
| size_t | len | |||
| ) |
| void _mesa_program_lexer_dtor | ( | void * | scanner | ) |
1.5.4