#include <string.h>
#include "main/mtypes.h"
#include "prog_instruction.h"
#include "program_parser.h"
Functions | |
int | _mesa_parse_instruction_suffix (const struct asm_parser_state *state, const char *suffix, struct prog_instruction *inst) |
Extra assembly-level parser routines. | |
int | _mesa_parse_cc (const char *s) |
Parses a condition code name. | |
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_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.
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 | |||
) |
Extra assembly-level parser routines.
Parses and processes instruction suffixes.