d3dx9: Implementation of D3DXGetShaderVersion
"Luis C. Busquets Pérez"
luis.busquets at ilidium.com
Thu Mar 20 16:34:51 CDT 2008
This functions gets the Version Token of a binary shader. This Token is
the first of the binary stream so it is as easy as picling the pointed
DWORD. This is all public information available to the public.
Furthermore, it returns 0 if the value passed is null as pointed out by
I have tested the results with Civ4 (by making a derivation on d3dx9_32
with this function and using the original d3dx9_36.D3DXGetShaderVersion
function) and the results where the same for all the shaders that where
dlls/d3dx9_36/Makefile.in | 3 +-
dlls/d3dx9_36/d3dx9_36.spec | 2 +-
dlls/d3dx9_36/shader.c | 46
3 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 dlls/d3dx9_36/shader.c
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2272 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080320/cf477c4f/attachment.bin
More information about the wine-patches