]> git.wh0rd.org - ICEs.git/blame - 225977/texenvprogram.i
initial import
[ICEs.git] / 225977 / texenvprogram.i
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}
18
19create_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}