IDXGIResource::GetUsage Method

Get the expected resource usage.

Syntax

public:
HRESULT GetUsage(
         DXGI_USAGE *pUsage
)  

Parameters

pUsage
Type: DXGI_USAGE *

[out] A pointer to a usage flag (see DXGI_USAGE). For Direct3D 10, a surface can be used as a shader input or a render-target output.

Return value

Type: HRESULT 

Returns one of the following DXGI_ERROR.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIResource

IDXGIResource Members