Skip to content

D3DXLoadSurfaceFromSurface-style helper using WIC #341

@walbourn

Description

@walbourn

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalutilityHelpers like ControllerFont, DebugDraw, TextConsole, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions