wined3d: sincos for vertex shaders.
commit64926223504cf03b5872a8545154bb6b32ae6473
authorStefan Dösinger <stefan@codeweavers.com>
Tue, 12 May 2009 18:11:50 +0000 (12 20:11 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 27 May 2009 09:56:53 +0000 (27 11:56 +0200)
tree69dd5c20cdd7ceefb44922656f9b7efed07fab28
parent2f3faf452646b8d249aeb827acdbc3d33fb54a30
wined3d: sincos for vertex shaders.

SCS is unfortunately a fragment program only instruction. If we have the NV
extensions we can use SIN and COS. Otherwise we have to approximate sine and
cosine with a taylor series. Luckily we're provided with the necessary
constants by the application.
dlls/d3d9/tests/visual.c
dlls/wined3d/arb_program_shader.c