Método ID3D11InfoQueue::AddRetrievalFilterEntries (d3d11sdklayers.h)

Adicione filtros de armazenamento à parte superior da pilha de filtro de recuperação.

Sintaxe

HRESULT AddRetrievalFilterEntries(
  [in] D3D11_INFO_QUEUE_FILTER *pFilter
);

Parâmetros

[in] pFilter

Tipo: D3D11_INFO_QUEUE_FILTER*

Matriz de filtros de recuperação (consulte D3D11_INFO_QUEUE_FILTER).

Retornar valor

Tipo: HRESULT

Esse método retorna um dos seguintes códigos de retorno do Direct3D 11.

Comentários

O exemplo de código a seguir mostra como usar 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 );

Requisitos

Requisito Valor
Plataforma de Destino Windows
Cabeçalho d3d11sdklayers.h
Biblioteca D3D11.lib

Confira também

ID3D11InfoQueue Interface