]> git.wh0rd.org - ICEs.git/blame - 225977/texenvprogram.i.unfiltered
initial import
[ICEs.git] / 225977 / texenvprogram.i.unfiltered
CommitLineData
45516216 1struct state_key {
2 struct {
3 int ModeRGB;
4 } unit[8];
5};
6struct ureg {
7 int file;
8 int idx;
9};
10struct texenv_fragment_program {
11 struct ureg src_previous;
12};
13struct 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}
18create_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}