initial import
[ICEs.git] / 225977 / texenvprogram.i
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
19 create_new_program()
20 {
21 struct texenv_fragment_program p;
22 int unit;
23 for (; unit; ++unit)
24 p.src_previous = emit_texenv(&p, unit);
25 }