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

# XG_TEXTURE1D_DESC (XBOX Series 主機)

> XG_TEXTURE1D_DESC 使用含 Swizzle 模式欄位的 Direct3D 11 樣式配置，為 XBOX Series 主機上的 XG 紋理配置 API 描述 1D 紋理。

以 Direct3D 11 樣式的結構，為 XG 紋理配置 API 描述 1D 紋理。

## 語法

```cpp theme={null}
typedef struct XG_TEXTURE1D_DESC {  
    UINT Width;  
    UINT MipLevels;  
    UINT ArraySize;  
    XG_FORMAT Format;  
    XG_USAGE Usage;  
    UINT BindFlags;  
    UINT CPUAccessFlags;  
    UINT MiscFlags;  
    XG_SWIZZLE_MODE SwizzleMode;  
    UINT Pitch;  
} XG_TEXTURE1D_DESC  
```

### 成員

*Width*\
類型：UINT

寬度 (以材質像素為單位)。

*MipLevels*\
類型：UINT

mip 層級數目。

*ArraySize*\
類型：UINT

陣列大小

*Format*\
類型：[XG\_FORMAT](/zh-TW/reference/graphics/xg__NR/enums/xg_format)

資源資料格式，以指向 [XG\_FORMAT](/zh-TW/reference/graphics/xg__NR/enums/xg_format) 列舉的指標表示。

*Usage*\
類型：[XG\_USAGE](/zh-TW/reference/graphics/xg__NR/enums/xg_usage)

使用方式，以 [XG\_USAGE](/zh-TW/reference/graphics/xg__NR/enums/xg_usage) 列舉常數表示。

*BindFlags*\
類型：UINT

識別緩衝區繫結至管線方式的旗標。為 [XG\_BIND\_FLAG](/zh-TW/reference/graphics/xg__NR/enums/xg_bind_flag) 列舉常數的邏輯 OR 組合。

*CPUAccessFlags*\
類型：UINT

CPU 存取旗標；如果不需要 CPU 存取，則為 0。為 [XG\_CPU\_ACCESS\_FLAG](/zh-TW/reference/graphics/xg__NR/enums/xg_cpu_access_flag) 列舉常數的邏輯 OR 組合。

*MiscFlags*\
類型：UINT

其他旗標；如果未使用，則為 0。為 [XG\_RESOURCE\_MISC\_FLAG](/zh-TW/reference/graphics/xg__NR/enums/xg_resource_misc_flag) 列舉常數的邏輯 OR 組合。

*SwizzleMode*\
類型：[XG\_SWIZZLE\_MODE](/zh-TW/reference/graphics/xg_xs/enums/xg_swizzle_mode)

Swizzle 模式，以指向 [XG\_SWIZZLE\_MODE](/zh-TW/reference/graphics/xg_xs/enums/xg_swizzle_mode) 列舉的指標表示。

*Pitch*\
類型：UINT

不支援；此參數必須傳遞 0。

## 備註

下列 API 項目會使用此結構：

* [XGComputeTexture1DLayout](/zh-TW/reference/graphics/xg__NR/functions/xgcomputetexture1dlayout)
* [XGCreateTexture1DComputer](/zh-TW/reference/graphics/xg__NR/functions/xgcreatetexture1dcomputer)

## 需求

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

## 另請參閱

[xg\_xs](/zh-TW/reference/graphics/xg_xs/xg_xs_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/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)
