wined3d: Add WINED3DINDEXBUFFER_DESC to wined3dtypes.h.
This commit is contained in:
parent
cba422261b
commit
6cc87406cf
|
@ -126,7 +126,7 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_Unlock(LPDIRECT3DINDEXBUFFER8 iface) {
|
|||
HRESULT WINAPI IDirect3DIndexBuffer8Impl_GetDesc(LPDIRECT3DINDEXBUFFER8 iface, D3DINDEXBUFFER_DESC *pDesc) {
|
||||
IDirect3DIndexBuffer8Impl *This = (IDirect3DIndexBuffer8Impl *)iface;
|
||||
TRACE("(%p) Relay\n", This);
|
||||
return IWineD3DIndexBuffer_GetDesc(This->wineD3DIndexBuffer, pDesc);
|
||||
return IWineD3DIndexBuffer_GetDesc(This->wineD3DIndexBuffer, (WINED3DINDEXBUFFER_DESC *) pDesc);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ HRESULT WINAPI IDirect3DIndexBuffer9Impl_Unlock(LPDIRECT3DINDEXBUFFER9 iface) {
|
|||
HRESULT WINAPI IDirect3DIndexBuffer9Impl_GetDesc(LPDIRECT3DINDEXBUFFER9 iface, D3DINDEXBUFFER_DESC *pDesc) {
|
||||
IDirect3DIndexBuffer9Impl *This = (IDirect3DIndexBuffer9Impl *)iface;
|
||||
TRACE("(%p) Relay\n", This);
|
||||
return IWineD3DIndexBuffer_GetDesc(This->wineD3DIndexBuffer, pDesc);
|
||||
return IWineD3DIndexBuffer_GetDesc(This->wineD3DIndexBuffer, (WINED3DINDEXBUFFER_DESC *) pDesc);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5024,7 +5024,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitive(IWineD3DDevice *iface,
|
|||
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
|
||||
UINT idxStride = 2;
|
||||
IWineD3DIndexBuffer *pIB;
|
||||
D3DINDEXBUFFER_DESC IdxBufDsc;
|
||||
WINED3DINDEXBUFFER_DESC IdxBufDsc;
|
||||
|
||||
pIB = This->stateBlock->pIndexData;
|
||||
This->stateBlock->streamIsUP = FALSE;
|
||||
|
|
|
@ -116,7 +116,7 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_Unlock(IWineD3DIndexBuffer *iface
|
|||
TRACE("(%p) : stub\n", This);
|
||||
return D3D_OK;
|
||||
}
|
||||
HRESULT WINAPI IWineD3DIndexBufferImpl_GetDesc(IWineD3DIndexBuffer *iface, D3DINDEXBUFFER_DESC *pDesc) {
|
||||
HRESULT WINAPI IWineD3DIndexBufferImpl_GetDesc(IWineD3DIndexBuffer *iface, WINED3DINDEXBUFFER_DESC *pDesc) {
|
||||
IWineD3DIndexBufferImpl *This = (IWineD3DIndexBufferImpl *)iface;
|
||||
|
||||
TRACE("(%p)\n", This);
|
||||
|
|
|
@ -684,7 +684,7 @@ DECLARE_INTERFACE_(IWineD3DIndexBuffer,IWineD3DResource)
|
|||
/*** IWineD3DIndexBuffer methods ***/
|
||||
STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
|
||||
STDMETHOD(Unlock)(THIS) PURE;
|
||||
STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC * pDesc) PURE;
|
||||
STDMETHOD(GetDesc)(THIS_ WINED3DINDEXBUFFER_DESC * pDesc) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
|
|
|
@ -610,6 +610,14 @@ typedef struct _WINED3DVERTEXBUFFER_DESC {
|
|||
DWORD FVF;
|
||||
} WINED3DVERTEXBUFFER_DESC;
|
||||
|
||||
typedef struct _WINED3DINDEXBUFFER_DESC {
|
||||
WINED3DFORMAT Format;
|
||||
WINED3DRESOURCETYPE Type;
|
||||
DWORD Usage;
|
||||
D3DPOOL Pool;
|
||||
UINT Size;
|
||||
} WINED3DINDEXBUFFER_DESC;
|
||||
|
||||
/*
|
||||
* The wined3dcaps structure
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue