Open walbourn opened 1 year ago
DirectXTex has all the facilities needed to support the old 'load-surface-from-surface' behavior. A sample implementation would help those porting D3DX code as well as demonstrate how heavy-weight that function was:
HRESULT WINAPI D3DXLoadSurfaceFromSurface( LPDIRECT3DSURFACE9 pDestSurface, CONST PALETTEENTRY* pDestPalette, CONST RECT* pDestRect, LPDIRECT3DSURFACE9 pSrcSurface, CONST PALETTEENTRY* pSrcPalette, CONST RECT* pSrcRect, DWORD Filter, D3DCOLOR ColorKey); HRESULT WINAPI D3DXLoadVolumeFromVolume( LPDIRECT3DVOLUME9 pDestVolume, CONST PALETTEENTRY* pDestPalette, CONST D3DBOX* pDestBox, LPDIRECT3DVOLUME9 pSrcVolume, CONST PALETTEENTRY* pSrcPalette, CONST D3DBOX* pSrcBox, DWORD Filter, D3DCOLOR ColorKey); HRESULT WINAPI D3DX11LoadTextureFromTexture( ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_TEXTURE_LOAD_INFO *pLoadInfo, ID3D11Resource *pDstTexture);
Duplicate of https://github.com/microsoft/DirectXTex/issues/4
DirectXTex has all the facilities needed to support the old 'load-surface-from-surface' behavior. A sample implementation would help those porting D3DX code as well as demonstrate how heavy-weight that function was: