ID3D11DeviceX::CreatePlacementTexture2D Method

Creates a placement for a 2D texture.

Syntax

public:
HRESULT CreatePlacementTexture2D(
         const D3D11_TEXTURE2D_DESC *pDesc,
         UINT TileModeIndex,
         UINT Pitch,
         void *pVirtualAddress,
         ID3D11Texture2D **ppTexture2D
)  

Parameters

pDesc
Type: D3D11_TEXTURE2D_DESC *

[in] The description of the texture, as a pointer to D3D11_TEXTURE2D_DESC.

TileModeIndex
Type: UINT 

[in] The tile mode index. See the XG_TILE_MODE enumeration.

Pitch
Type: UINT 

[in] The pitch.

pVirtualAddress
Type: void *

[in] The CPU virtual address.

ppTexture2D
Type: ID3D11Texture2D **

[out, optional] The texture, as a pointer to pointer to ID3D11Texture2D.

Return value

Type: HRESULT 

One of the Direct3D 11 return codes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceX Interface

ID3D11DeviceX Members