> ## 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.

# D3D12XBOX_LIVE_DEBUGGING_ANY_SHADER_PARAMETERS

> 用來指定要即時偵錯任何著色器的參數

當 [D3D12XBOX\_LIVE\_DEBUGGING\_PARAMETERS](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12xbox_live_debugging_parameters) 中的 *Type* 設定為 D3D12XBOX\_LIVE\_DEBUGGING\_SHADER\_STAGE\_ANY 時，用來指定要即時偵錯任何著色器的參數。
會呈現找到的第一個任何類型著色器以供偵錯。

## 語法

```cpp theme={null}
struct D3D12XBOX_LIVE_DEBUGGING_ANY_SHADER_PARAMETERS {
  D3D12XBOX_LIVE_DEBUGGING_SHADER_FLAGS Flags;
}
```

## 成員

*Flags*   \_In\_\
類型：[D3D12XBOX\_LIVE\_DEBUGGING\_SHADER\_FLAGS](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12xbox_live_debugging_shader_flags)

允許指定任何著色器

## 備註

範例 - 在後續的繪製或分派上啟用任何著色器的即時偵錯。這非常方便，因為只需新增最少的程式碼即可啟用即時偵錯，而且可移植到不同的繪製與分派。

```cpp theme={null}
bool debugLive = (m_FrameIndex == 500);

if (debugLive)
{
    D3D12XBOX_LIVE_DEBUGGING_PARAMETERS liveDebugParams{ 0 };
    // liveDebugParams.Type is set to D3D12XBOX_LIVE_DEBUGGING_SHADER_STAGE_ANY as it is the default value
    pCmdList6->EnableLiveDebuggingX(&liveDebugParams);
}
pCmdList->DrawIndexedInstanced(3, 1, 0, 0, 0);
```

## 需求

[D3D12XBOX\_LIVE\_DEBUGGING\_PARAMETERS](/zh-TW/reference/graphics/d3d12_xs/structs/d3d12xbox_live_debugging_parameters) 中的 *Type* 不應設定為 D3D12XBOX\_LIVE\_DEBUGGING\_SHADER\_STAGE\_ANY 以外的任何值。

**標頭：** d3d12\_xs.h\
**支援的平台**：XBOX Series 主機

## 另請參閱

[d3d12\_xs 成員](/zh-TW/reference/graphics/d3d12_xs/d3d12_xs_members)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
