Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11Texture2D interface

A 2D texture interface manages texel data, which is structured memory.

Members

The ID3D11Texture2D interface inherits from ID3D11Resource. ID3D11Texture2D also has these types of members:

Methods

The ID3D11Texture2D interface has these methods.

MethodDescription
GetDesc

Get the properties of the texture resource.

 

Remarks

To create an empty Texture2D resource, call ID3D11Device::CreateTexture2D. For info about how to create a 2D texture, see How to: Create a Texture.

Textures cannot be bound directly to the pipeline; instead, a view must be created and bound. Using a view, texture data can be interpreted at run time within certain restrictions. To use the texture as a render target or depth-stencil resource, call ID3D11Device::CreateRenderTargetView, and ID3D11Device::CreateDepthStencilView, respectively. To use the texture as an input to a shader, create a by calling ID3D11Device::CreateShaderResourceView.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11Resource
Resource Interfaces

 

 

Show:
© 2016 Microsoft