ID3D11InfoQueue::AddRetrievalFilterEntries-Methode (d3d11sdklayers.h)
Fügen Sie speicherfilter am Anfang des Abruf-Filter-Stapels hinzu.
Syntax
HRESULT AddRetrievalFilterEntries(
[in] D3D11_INFO_QUEUE_FILTER *pFilter
);
Parameter
[in] pFilter
Typ: D3D11_INFO_QUEUE_FILTER*
Array von Abruffiltern (siehe D3D11_INFO_QUEUE_FILTER).
Rückgabewert
Typ: HRESULT
Diese Methode gibt einen der folgenden Direct3D 11-Rückgabecodes zurück.
Hinweise
Im folgenden Codebeispiel wird die Verwendung von ID3D11InfoQueue::AddRetrievalFilterEntries veranschaulicht:
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 );
Anforderungen
Anforderung | Wert |
---|---|
Zielplattform | Windows |
Kopfzeile | d3d11sdklayers.h |
Bibliothek | D3D11.lib |