> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetBreakOnCategory (XBOX Series 主機)

> 設定訊息類別，當具有該類別的訊息通過儲存篩選器時即中斷。

設定訊息類別，當具有該類別的訊息通過儲存篩選器時即中斷。

## 語法

```cpp theme={null}
HRESULT SetBreakOnCategory(  
         DXGI_DEBUG_ID Producer,  
         DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,  
         BOOL bEnable  
)  
```

### 參數

*Producer*   \_In\_\
類型：[DXGI\_DEBUG\_ID](https://learn.microsoft.com/en-us/windows/desktop/direct3ddxgi/dxgi-debug-id)

設定中斷狀態之實體的識別碼。

*Category*   \_In\_\
類型：[DXGI\_INFO\_QUEUE\_MESSAGE\_CATEGORY](https://learn.microsoft.com/en-us/windows/desktop/api/dxgidebug/ne-dxgidebug-dxgi_info_queue_message_category)

訊息的類別。

*bEnable*   \_In\_\
類型：BOOL

指定是否啟用對指定訊息類別的中斷；**TRUE** 表示啟用，**FALSE** 表示停用。

### 傳回值

類型：HRESULT

如果成功，則傳回 S\_OK；否則傳回錯誤碼。如需錯誤碼清單，請參閱 [Direct3D 12 傳回碼](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12-graphics-reference-returnvalues)。

## 需求

**標頭：** d3d12\_xs.h

**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[IDXGIInfoQueue](/zh-TW/reference/graphics/d3d12_xs/interfaces/IDXGIInfoQueue/idxgiinfoqueue)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [SetPipelineState1 (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_setpipelinestate1_public.md)
- [RSSetShadingRate (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist5/methods/id3d12graphicscommandlist5_rssetshadingrate_public.md)
- [SetPipelineStackSize (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12stateobjectproperties/methods/id3d12stateobjectproperties_setpipelinestacksize_public.md)
- [RSSetShadingRateImage (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist5/methods/id3d12graphicscommandlist5_rssetshadingrateimage_public.md)
