initial import
[ICEs.git] / 225977 / texenvprogram.i.unfiltered
1 struct state_key {
2 struct {
3 int ModeRGB;
4 } unit[8];
5 };
6 struct ureg {
7 int file;
8 int idx;
9 };
10 struct texenv_fragment_program {
11 struct ureg src_previous;
12 };
13 struct ureg emit_texenv(struct texenv_fragment_program *p, int unit)
14 {
15 struct state_key *key;
16 emit_combine(p, key->unit[unit].ModeRGB);
17 }
18 create_new_program()
19 {
20 struct texenv_fragment_program p;
21 int unit;
22 for (; unit; ++unit)
23 p.src_previous = emit_texenv(&p, unit);
24 }