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

# EmitRaytracingAccelerationStructurePostbuildInfo

> 为一组加速结构发出构建后属性。这使应用程序能够了解通过以下方式执行加速结构操作所需的输出资源要求。

为一组加速结构发出构建后属性。这使应用程序能够了解通过 [ID3D12GraphicsCommandList4::CopyRaytracingAccelerationStructure](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_copyraytracingaccelerationstructure_public) 执行加速结构操作所需的输出资源要求。

## 语法

```cpp theme={null}
void EmitRaytracingAccelerationStructurePostbuildInfo(
    const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC  pDesc,
    UINT NumSourceAccelerationStructures,
    const D3D12_GPU_VIRTUAL_ADDRESS  pSourceAccelerationStructureData
)
```

### 参数

*pDesc \[in]*\
类型：const D3D12\_RAYTRACING\_ACCELERATION\_STRUCTURE\_POSTBUILD\_INFO\_DESC \*

一个 [D3D12\_RAYTRACING\_ACCELERATION\_STRUCTURE\_POSTBUILD\_INFO\_DESC](/reference/graphics/d3d12/structs/d3d12_raytracing_acceleration_structure_postbuild_info_desc_public) 对象，描述要生成的构建后信息。

*NumSourceAccelerationStructures \[in]*\
类型：UINT

由 <i>pSourceAccelerationStructureData</i> 指向的加速结构 GPU 虚拟地址的指针数量。此数量还影响目标（输出），它将是 **NumSourceAccelerationStructures** 个输出结构的连续数组，其中结构的类型取决于 <i>pDesc</i> 描述中所提供的 <i>InfoType</i> 字段。

*pSourceAccelerationStructureData \[in]*\
类型：const D3D12\_GPU\_VIRTUAL\_ADDRESS \*

指向大小为 <i>NumSourceAccelerationStructures</i> 的 GPU 虚拟地址数组的指针。

地址必须按 256 字节对齐，即 [D3D12\_RAYTRACING\_ACCELERATION\_STRUCTURE\_BYTE\_ALIGNMENT](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/constants) 中定义的值。

所指向的内存必须处于状态 [D3D12\_RESOURCE\_STATE\_RAYTRACING\_ACCELERATION\_STRUCTURE](/reference/graphics/d3d12_x/enums/d3d12_resource_states)。

### 返回值

类型：void

无。

## 备注

此方法可以从图形或计算命令列表调用，但不能从捆绑包调用。

## 要求

**头文件：** d3d12\_xs.h\
**库：** d3d12\_xs.lib\
**支持的平台**：XBOX Series 主机

## 另请参阅

[ID3D12GraphicsCommandList4](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList4/id3d12graphicscommandlist4)


## Related topics

- [D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_acceleration_structure_postbuild_info_desc_public.md)
- [BuildRaytracingAccelerationStructure (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_buildraytracingaccelerationstructure_public.md)
- [CopyRaytracingAccelerationStructure (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_copyraytracingaccelerationstructure_public.md)
- [NDA 主题目录 - Microsoft Learn 在线链接](/zh-CN/nda/nda-topic-directory.md)
- [D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC (XBOX Series consoles)](/zh-CN/reference/graphics/d3d12/structs/d3d12_raytracing_acceleration_structure_postbuild_info_serialization_desc_public.md)
