ID3D12InfoQueue::AddRetrievalFilterEntries-Methode (d3d12sdklayers.h)
Fügen Sie speicherfilter am oberen Rand des Stapels "Abruffilter" hinzu.
Syntax
HRESULT AddRetrievalFilterEntries(
[in] D3D12_INFO_QUEUE_FILTER *pFilter
);
Parameter
[in] pFilter
Typ: D3D12_INFO_QUEUE_FILTER*
Array von Abruffiltern.
Rückgabewert
Typ: HRESULT
Diese Methode gibt einen der Direct3D 12-Rückgabecodes zurück.
Hinweise
Im folgenden Codebeispiel wird die Verwendung dieser Methode veranschaulicht:
D3D12_MESSAGE_CATEGORY cats[] = { ..., ..., ... };
D3D12_MESSAGE_SEVERITY sevs[] = { ..., ..., ... };
D3D12_MESSAGE_ID ids[] = { ..., ..., ... };
D3D12_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 = _countof(cats);
filter.AllowList.pCategoryList = cats;
filter.AllowList.NumSeverities = _countof(sevs);
filter.AllowList.pSeverityList = sevs;
filter.AllowList.NumIDs = _countof(ids);
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 | d3d12sdklayers.h |