ID3D11DeviceContext1_DiscardView1_Proxy

Proxy function for ID3D11DeviceContext1::DiscardView1, which discards the specified elements in a resource view from the device context.

Syntax

void ID3D11DeviceContext1_DiscardView1_Proxy(
         ID3D11DeviceContext1 *This,
         ID3D11View *pResourceView,
         const D3D11_RECT *pRects,
         UINT NumRects
)  

Parameters

This
Type: ID3D11DeviceContext1 *

A pointer to the current instance of ID3D11DeviceContext1.

pResourceView
Type: ID3D11View *

[in] A pointer to the ID3D11View interface for the resource view to discard. The resource that underlies the view must have been created with usage D3D11_USAGE_DEFAULT or D3D11_USAGE_DYNAMIC, otherwise the runtime drops the call to DiscardView1; if the debug layer is enabled, the runtime returns an error message.

pRects
Type: D3D11_RECT *

[in, optional] An array of D3D11_RECT structures for the rectangles in the resource view to discard. If NULL, ID3D11DeviceContext1_DiscardView1_Proxy discards the entire view and behaves the same as DiscardView.

NumRects
Type: UINT 

Number of rectangles in the array that the pRects parameter specifies.

Return value

None.

Remarks

See ID3D11DeviceContext1::DiscardView1.

Requirements

Header: Declared in d3d11_1.h.

Library: Use d3d11.lib.