d3d10core: Implement ID3D10Texture2D::GetDesc().
This commit is contained in:
parent
e5abaf9f97
commit
1fa7fea8a0
|
@ -60,6 +60,7 @@ struct d3d10_texture2d
|
||||||
|
|
||||||
IUnknown *dxgi_surface;
|
IUnknown *dxgi_surface;
|
||||||
IWineD3DSurface *wined3d_surface;
|
IWineD3DSurface *wined3d_surface;
|
||||||
|
D3D10_TEXTURE2D_DESC desc;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ID3D10Buffer */
|
/* ID3D10Buffer */
|
||||||
|
|
|
@ -604,6 +604,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device *ifac
|
||||||
|
|
||||||
object->vtbl = &d3d10_texture2d_vtbl;
|
object->vtbl = &d3d10_texture2d_vtbl;
|
||||||
object->refcount = 1;
|
object->refcount = 1;
|
||||||
|
object->desc = *desc;
|
||||||
|
|
||||||
if (desc->MipLevels == 1 && desc->ArraySize == 1)
|
if (desc->MipLevels == 1 && desc->ArraySize == 1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
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 =
|
const struct ID3D10Texture2DVtbl d3d10_texture2d_vtbl =
|
||||||
|
|
Loading…
Reference in New Issue