d3dx9: Implement D3DXGetShaderVersion().

This commit is contained in:
Luis Busquets 2008-07-20 22:07:42 +02:00 committed by Alexandre Julliard
parent 0a8b284010
commit fb70f818b7
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -26,6 +26,7 @@ extern "C" {
#endif
UINT WINAPI D3DXGetShaderSize(const DWORD *byte_code);
DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code);
#ifdef __cplusplus
}