Citace:
Původně odeslal Wuuduu
2Belog: ten kompiler nie je robeny konkretne na kazdu aplikaciu, ale vseobecne preklada DX9 kod na kod FX.
Ano, takto by to malo vyzerat v idealnom pripade... Kompiler ako "blackbox", ktory zozerie bytecode DX shader programu (bez toho aby o nom nieco dopredu vedel) a vypluje bytecode s "reorganizovanymi" instrukciami, ktore su dalej rozbite na mikroinstrukcie mapujuce priamo HW architekturu.
Bohuzial, nVidia si pod slovnym spojenim "unified compiler" predstavuje i cosi ineho:
Citace:
...
One of the questions we always get is what does this compiler do? The unified compiler does things like instruction reordering and register allocation. The unified compiler is carefully architected so as to maintain perfect image quality while significantly increasing performance. The unified compiler a collection of techniques that are not specific to any particular application but expose the full power of GeForce FX. These techniques are applied with a fingerprinting mechanism which evaluates shaders and, in some cases substitutes hand tuned shaders, but increasingly generates optimal code in real-time.
...
Derek Perez
Director of Nvidia PR
Dovolil som si zvyraznit tie zaujimavejsie casti tohto PR vyhlasenia (mimochodom, tie dve vety si odporuju... :-)). Tak to tu mame: ono to sice udajne nie je "application specific", ale niektore specificke shader programy su rozpoznavane a nahradzovane specifickymi "hand tuned" verziami. Nech si kazdy spravi vlastny nazor sam...