D3DX11LoadTextureFromTexture function
Note
The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Note
Instead of using this function, we recommend that you use the DirectXTex library, Resize, Convert, Compress, Decompress, and/or CopyRectangle.
Load a texture from a texture.
Syntax
HRESULT D3DX11LoadTextureFromTexture(
ID3D11DeviceContext *pContext,
ID3D11Resource *pSrcTexture,
D3DX11_TEXTURE_LOAD_INFO *pLoadInfo,
ID3D11Resource *pDstTexture
);
Parameters
-
pContext
-
Type: ID3D11DeviceContext*
A pointer to an ID3D11DeviceContext object.
-
pSrcTexture
-
Type: ID3D11Resource*
Pointer to the source texture. See ID3D11Resource.
-
pLoadInfo
-
Type: D3DX11_TEXTURE_LOAD_INFO*
Pointer to texture loading parameters. See D3DX11_TEXTURE_LOAD_INFO.
-
pDstTexture
-
Type: ID3D11Resource*
Pointer to the destination texture. See ID3D11Resource.
Return value
Type: HRESULT
The return value is one of the values listed in Direct3D 11 Return Codes.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|