d3d10core: Implement ID3D10Texture2D::GetDesc().

This commit is contained in:
Henri Verbeet 2009-01-26 09:38:14 +01:00 committed by Alexandre Julliard
parent e5abaf9f97
commit 1fa7fea8a0
3 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,7 @@ struct d3d10_texture2d
IUnknown *dxgi_surface;
IWineD3DSurface *wined3d_surface;
D3D10_TEXTURE2D_DESC desc;
};
/* ID3D10Buffer */

View File

@ -604,6 +604,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device *ifac
object->vtbl = &d3d10_texture2d_vtbl;
object->refcount = 1;
object->desc = *desc;
if (desc->MipLevels == 1 && desc->ArraySize == 1)
{

View File

@ -152,7 +152,11 @@ static void STDMETHODCALLTYPE d3d10_texture2d_Unmap(ID3D10Texture2D *iface, UINT
static void STDMETHODCALLTYPE d3d10_texture2d_GetDesc(ID3D10Texture2D *iface, D3D10_TEXTURE2D_DESC *desc)
{
FIXME("iface %p, desc %p stub!\n", iface, desc);
struct d3d10_texture2d *This = (struct d3d10_texture2d *)iface;
TRACE("iface %p, desc %p\n", iface, desc);
*desc = This->desc;
}
const struct ID3D10Texture2DVtbl d3d10_texture2d_vtbl =