From fb70f818b7e6d06f4d70aa953aac6ca69d63cc6b Mon Sep 17 00:00:00 2001 From: Luis Busquets Date: Sun, 20 Jul 2008 22:07:42 +0200 Subject: [PATCH] d3dx9: Implement D3DXGetShaderVersion(). --- dlls/d3dx9_36/d3dx9_36.spec | 2 +- dlls/d3dx9_36/shader.c | 7 +++++++ include/d3dx9shader.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index 93ba1329961..1619f16900f 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -163,7 +163,7 @@ @ stub D3DXGetShaderOutputSemantics @ stub D3DXGetShaderSamplers @ stdcall D3DXGetShaderSize(ptr) -@ stub D3DXGetShaderVersion +@ stdcall D3DXGetShaderVersion(ptr) @ stub D3DXGetVertexShaderProfile @ stdcall D3DXIntersect(ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersect @ stdcall D3DXIntersectSubset(ptr long ptr ptr ptr ptr ptr ptr ptr ptr ptr) d3dx8.D3DXIntersectSubset diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index bbda961c489..326331c4588 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -47,3 +47,10 @@ UINT WINAPI D3DXGetShaderSize(const DWORD *byte_code) /* Return the shader size in bytes */ return (ptr - byte_code) * sizeof(*ptr); } + +DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code) +{ + TRACE("byte_code %p\n", byte_code); + + return byte_code ? *byte_code : 0; +} diff --git a/include/d3dx9shader.h b/include/d3dx9shader.h index 5eb4fe67587..6d2aa415d41 100644 --- a/include/d3dx9shader.h +++ b/include/d3dx9shader.h @@ -26,6 +26,7 @@ extern "C" { #endif UINT WINAPI D3DXGetShaderSize(const DWORD *byte_code); +DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code); #ifdef __cplusplus }