IDXGIResource::GetUsage method (dxgi.h)

Get the expected resource usage.

Syntax

HRESULT GetUsage(
  DXGI_USAGE *pUsage
);

Parameters

pUsage

Type: DXGI_USAGE*

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

Requirement Value
Target Platform Windows
Header dxgi.h
Library DXGI.lib

See also

IDXGIResource