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

# Recompile

> 重新編譯 XDXR PDB

重新編譯 XDXR PDB

## 語法

```cpp theme={null}
HRESULT Recompile(  
         const DxcBuffer *pRootPDB,  
         const DxcBuffer *pLibraryDxils,  
         UINT uNumLibraryDxils,  
         REFIID riid,  
         LPVOID* ppv  
)  
```

### 參數

\**pRootPDB*   \_In\_<br />類型：DxcBuffer

要重新編譯的 PDB。

\**pLibraryDxils*   \_In\_<br />類型：DxcBuffer

用來重新編譯 PDB 的 DXIL 程式庫清單。

*uNumLibraryDxils*   \_In\_<br />類型：UINT

要重新編譯的程式庫數目。

*riid*   \_In\_<br />類型：REFIID

著色器編譯狀態 (`IDxcOperationResult` 或 `IDxcResult`) 的全域唯一識別碼 (GUID)。

若要擷取資源之介面的 [REFIID](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-oaut/bbde795f-5398-42d8-9f59-3613da03c318) (或 GUID)，請使用 [\_\_uuidof()](https://learn.microsoft.com/en-us/cpp/cpp/uuidof-operator?view=vs-2019) 巨集。例如，若要取得命令清單之介面的 GUID，請執行下列動作：

*ppv*   \_Out\_<br />類型：LPVOID\*

編譯結果。

### 傳回值

類型：HRESULT

如果方法成功，就會傳回 `S\_OK`。

## 需求

**標頭：** dxcapi\_x.h (XBOX One)、dxcapi\_xs.h (XBOX Series)<br />**支援的平台：** XBOX One 系列主機與 XBOX Series 主機<br />**程式庫：** dxcompiler\_x.lib (XBOX One)、dxcompiler\_xs.lib (XBOX Series)

## 另請參閱

[IXdxrPdbRecompiler](/zh-TW/reference/graphics/dxcapi_x/interfaces/IXdxrPdbRecompiler/ixdxrpdbrecompiler)
