Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3DXLoadSurfaceFromSurface-style helper using WIC #341

Open
walbourn opened this issue Nov 18, 2022 · 0 comments
Open

D3DXLoadSurfaceFromSurface-style helper using WIC #341

walbourn opened this issue Nov 18, 2022 · 0 comments
Labels
proposal utility Helpers like ControllerFont, DebugDraw, TextConsole, etc.

Comments

@walbourn
Copy link
Member

walbourn commented Nov 18, 2022

The full implementation of the old 'load surface from surface' requires DirectXTex, but a subset of pixel format conversions can be implemented using WIC.

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);
@walbourn walbourn added documentation enhancement utility Helpers like ControllerFont, DebugDraw, TextConsole, etc. and removed documentation enhancement labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal utility Helpers like ControllerFont, DebugDraw, TextConsole, etc.
Projects
None yet
Development

No branches or pull requests

1 participant