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

# GetCode

> 擷取此著色器階段的已編碼硬體著色器指令。

擷取此著色器階段的已編碼硬體著色器指令。

## 語法

```cpp theme={null}
HRESULT GetCode(  
         IDxcBlob **ppResult  
)  
```

### 參數

\*\**ppResult*   \_COM\_Outptr\_\
類型：IDxcBlob

包含著色器指令的二進位 Blob。

### 傳回值

類型：HRESULT

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

## 備註

傳回的著色器指令 Blob 只包含指令，沒有額外資料。

## 需求

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

## 另請參閱

[IDxcXboxHwShader](/zh-TW/reference/graphics/dxcapi_x/interfaces/idxcxboxhwshader/idxcxboxhwshader)


## Related topics

- [ILampInfo::GetScanCode](/ko/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
- [XblHttpCallGetStatusCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode.md)
- [HCHttpCallResponseGetStatusCode](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
