共用方式為


D3D12_MESSAGE 結構 (d3d12sdklayers.h)

資訊佇列中的偵錯訊息。

語法

typedef struct D3D12_MESSAGE {
  D3D12_MESSAGE_CATEGORY Category;
  D3D12_MESSAGE_SEVERITY Severity;
  D3D12_MESSAGE_ID       ID;
  const char             *pDescription;
  SIZE_T                 DescriptionByteLength;
} D3D12_MESSAGE;

成員

Category

訊息的分類。 請參閱 D3D12_MESSAGE_CATEGORY

Severity

訊息的嚴重性。 請參閱 D3D12_MESSAGE_SEVERITY

ID

訊息的 ID。 請參閱 D3D12_MESSAGE_ID

pDescription

訊息字串。

DescriptionByteLength

pDescription的長度,以位元組為單位。

備註

此結構會從 ID3D12InfoQueue::GetMessage 傳回,作為資訊佇列功能的一部分, (請參閱 ID3D12InfoQueue) 。

需求

   
標頭 d3d12sdklayers.h

另請參閱

偵錯層結構