Commit b4a90b0f authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: Implement D3DXCreateVolumeTexture.

parent c1843c87
......@@ -106,7 +106,7 @@
@ stub D3DXCreateTextureGutterHelper
@ stub D3DXCreateTextureShader
@ stub D3DXCreateTorus
@ stub D3DXCreateVolumeTexture
@ stdcall D3DXCreateVolumeTexture(ptr long long long long long long long ptr)
@ stub D3DXCreateVolumeTextureFromFileA
@ stub D3DXCreateVolumeTextureFromFileExA
@ stub D3DXCreateVolumeTextureFromFileExW
......
......@@ -905,3 +905,34 @@ HRESULT WINAPI D3DXCreateCubeTexture(LPDIRECT3DDEVICE9 device,
return IDirect3DDevice9_CreateCubeTexture(device, size, miplevels, usage, format, pool, texture, NULL);
}
HRESULT WINAPI D3DXCreateVolumeTexture(LPDIRECT3DDEVICE9 device,
UINT width,
UINT height,
UINT depth,
UINT miplevels,
DWORD usage,
D3DFORMAT format,
D3DPOOL pool,
LPDIRECT3DVOLUMETEXTURE9 *texture)
{
HRESULT hr;
TRACE("(%p, %u, %u, %u, %u, %#x, %#x, %#x, %p)\n", device, width, height, depth,
miplevels, usage, format, pool, texture);
if (!device || !texture)
return D3DERR_INVALIDCALL;
hr = D3DXCheckVolumeTextureRequirements(device, &width, &height, &depth,
&miplevels, usage, &format, pool);
if (FAILED(hr))
{
TRACE("D3DXCheckVolumeTextureRequirements failed\n");
return hr;
}
return IDirect3DDevice9_CreateVolumeTexture(device, width, height, depth, miplevels,
usage, format, pool, texture, NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment