ID3D11Debug::ValidateContext Method

Check to see if the draw pipeline state is valid.

Syntax

public:
HRESULT ValidateContext(
         ID3D11DeviceContext *pContext
)  

Parameters

pContext
Type: ID3D11DeviceContext *

[in] A pointer to the ID3D11DeviceContext, that represents a device context.

Return value

Type: HRESULT 

This method returns one of the following Direct3D 11 return codes.

Remarks

Use validate prior to calling a draw method (for example, ID3D11DeviceContext::Draw); validation requires the debug layer.

Requirements

Header: Declared in d3d11sdklayers.h.

Library: Use d3d11.lib.

See also

ID3D11Debug

ID3D11Debug Members