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

# D3D12_RAYTRACING_GEOMETRY_DESC (XBOX Series 主機)

> 描述一組幾何，用於 D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS 結構中，以提供輸入資料給光線追蹤。

描述一組幾何，用於 [D3D12\_BUILD\_RAYTRACING\_ACCELERATION\_STRUCTURE\_INPUTS](/zh-TW/reference/graphics/d3d12/structs/d3d12_build_raytracing_acceleration_structure_inputs_public) 結構中，以提供輸入資料給光線追蹤加速結構建置作業。

## 語法

```cpp theme={null}
typedef struct D3D12_RAYTRACING_GEOMETRY_DESC
{
    D3D12_RAYTRACING_GEOMETRY_TYPE Type;
    D3D12_RAYTRACING_GEOMETRY_FLAGS Flags;
    D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles;
    D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs;
} D3D12_RAYTRACING_GEOMETRY_DESC
```

### 成員

*Type*\
類型：D3D12\_RAYTRACING\_GEOMETRY\_TYPE

幾何的類型。

*Flags*\
類型：D3D12\_RAYTRACING\_GEOMETRY\_FLAGS

幾何旗標

*Triangles*\
類型：D3D12\_RAYTRACING\_GEOMETRY\_TRIANGLES\_DESC

如果 <i>Type</i> 為 [D3D12\_RAYTRACING\_GEOMETRY\_TYPE\_TRIANGLES](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public)，則為描述三角形幾何的 [D3D12\_RAYTRACING\_GEOMETRY\_TRIANGLES\_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_triangles_desc_public)。否則不會使用此參數。

*AABBs*\
類型：D3D12\_RAYTRACING\_GEOMETRY\_AABBS\_DESC

如果 <i>Type</i> 為 [D3D12\_RAYTRACING\_GEOMETRY\_TYPE\_PROCEDURAL\_PRIMITIVE\_AABBS](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public)，則為描述三角形幾何的 [D3D12\_RAYTRACING\_GEOMETRY\_AABBS\_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_aabbs_desc_public)。否則不會使用此參數。

## 需求

**標頭:** d3d12\_xs.h\
**程式庫:** d3d12\_xs.lib\
**支援的平台**: XBOX Series 主機


## Related topics

- [D3D12_RAYTRACING_GEOMETRY_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
- [D3D12_RAYTRACING_GEOMETRY_TYPE (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public.md)
- [D3D12_RAYTRACING_GEOMETRY_AABBS_DESC (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_aabbs_desc_public.md)
- [D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_triangles_desc_public.md)
- [D3D12_RAYTRACING_INSTANCE_FLAGS (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_raytracing_instance_flags_public.md)
