Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Aggiungere filtri di archiviazione all'inizio dello stack di filtri di recupero.
Sintassi
HRESULT AddRetrievalFilterEntries(
[in] D3D12_INFO_QUEUE_FILTER *pFilter
);
Parametri
[in] pFilter
Tipo: D3D12_INFO_QUEUE_FILTER*
Matrice di filtri di recupero.
Valore restituito
Tipo: HRESULT
Questo metodo restituisce uno dei codici restituiti Direct3D 12.
Commenti
Nell'esempio di codice seguente viene illustrato come usare questo metodo:
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 );
Requisiti
| Requisito | Valore |
|---|---|
| Piattaforma di destinazione | Windows |
| Intestazione | d3d12sdklayers.h |