ID3D11InfoQueue ::AddRetrievalFilterEntries, méthode (d3d11sdklayers.h)
Ajoutez des filtres de stockage en haut de la pile de filtres de récupération.
Syntaxe
HRESULT AddRetrievalFilterEntries(
[in] D3D11_INFO_QUEUE_FILTER *pFilter
);
Paramètres
[in] pFilter
Type : D3D11_INFO_QUEUE_FILTER*
Tableau de filtres de récupération (voir D3D11_INFO_QUEUE_FILTER).
Valeur retournée
Type : HRESULT
Cette méthode retourne l’un des codes de retour Direct3D 11 suivants.
Remarques
L’exemple de code suivant montre comment utiliser ID3D11InfoQueue ::AddRetrievalFilterEntries :
D3D11_MESSAGE_CATEGORY cats[] = { ..., ..., ... };
D3D11_MESSAGE_SEVERITY sevs[] = { ..., ..., ... };
UINT ids[] = { ..., ..., ... };
D3D11_INFO_QUEUE_FILTER filter;
memset( &filter, 0, sizeof(filter) );
// To set the type of messages to allow,
// set filter.AllowList as follows:
filter.AllowList.NumCategories = sizeof(cats / sizeof(D3D11_MESSAGE_CATEGORY));
filter.AllowList.pCategoryList = cats;
filter.AllowList.NumSeverities = sizeof(sevs / sizeof(D3D11_MESSAGE_SEVERITY));
filter.AllowList.pSeverityList = sevs;
filter.AllowList.NumIDs = sizeof(ids) / sizeof(UINT);
filter.AllowList.pIDList = ids;
// To set the type of messages to deny, set filter.DenyList
// similarly to the preceding filter.AllowList.
// The following single call sets all of the preceding information.
hr = infoQueue->AddRetrievalFilterEntries( &filter );
Configuration requise
Condition requise | Valeur |
---|---|
Plateforme cible | Windows |
En-tête | d3d11sdklayers.h |
Bibliothèque | D3D11.lib |