ID3D11InfoQueue::AddRetrievalFilterEntries 方法 (d3d11sdklayers.h)
將記憶體篩選新增至擷取篩選堆疊頂端。
語法
HRESULT AddRetrievalFilterEntries(
[in] D3D11_INFO_QUEUE_FILTER *pFilter
);
參數
[in] pFilter
擷取篩選 (的陣列,請參閱 D3D11_INFO_QUEUE_FILTER) 。
傳回值
類型: HRESULT
此方法會傳回下列其中一個 Direct3D 11 傳回碼。
備註
下列程式代碼範例示範如何使用 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 );
規格需求
需求 | 值 |
---|---|
目標平台 | Windows |
標頭 | d3d11sdklayers.h |
程式庫 | D3D11.lib |