> ## 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 consoles)

> 描述在 D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS 结构中用于为光线追踪提供输入数据的一组几何体。

描述在 [D3D12\_BUILD\_RAYTRACING\_ACCELERATION\_STRUCTURE\_INPUTS](/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](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public)，则为描述三角形几何体的 [D3D12\_RAYTRACING\_GEOMETRY\_TRIANGLES\_DESC](/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](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public)，则为描述三角形几何体的 [D3D12\_RAYTRACING\_GEOMETRY\_AABBS\_DESC](/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-CN/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
- [D3D12_RAYTRACING_GEOMETRY_TYPE (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_type_public.md)
- [D3D12_RAYTRACING_GEOMETRY_AABBS_DESC (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_aabbs_desc_public.md)
- [D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_triangles_desc_public.md)
- [D3D12_RAYTRACING_INSTANCE_DESC (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_instance_desc_public.md)
