ID3D11Debug::ValidateContextForDispatch method

Verifies whether the dispatch pipeline state is valid.

Syntax


HRESULT ValidateContextForDispatch(
  [in] ID3D11DeviceContext *pContext
);

Parameters

pContext [in]

Type: ID3D11DeviceContext*

A pointer to the ID3D11DeviceContext that represents a device context.

Return value

Type: HRESULT

This method returns one of the return codes described in the topic Direct3D 11 Return Codes.

Remarks

Use this method before you call a dispatch method (for example, ID3D11DeviceContext::Dispatch). Validation requires the debug layer.

Requirements

Header

D3D11SDKLayers.h

Library

D3D11.lib

See also

ID3D11Debug

 

 

Show: