ID3D12GraphicsCommandList4::BuildRaytracingAccelerationStructure method (d3d12.h)
Performs a raytracing acceleration structure build on the GPU and optionally outputs post-build information immediately after the build.
void BuildRaytracingAccelerationStructure( [in] const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, [in] UINT NumPostbuildInfoDescs, [in] const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs );
Description of the acceleration structure to build.
Size of the pPostbuildInfoDescs array. Set to 0 if no post-build info is needed.
Optional array of descriptions for post-build info to generate describing properties of the acceleration structure that was built.
This method can be called on graphics or compute command lists but not from bundles.
Post-build information can also be obtained separately from an already built acceleration structure by calling EmitRaytracingAccelerationStructurePostbuildInfo. The advantage of generating post-build info along with a build is that a barrier isn’t needed in between the build completing and requesting post-build information, enabling scenarios where the app needs the post-build info right away.
|Minimum supported client||Windows 10, version 1809 [desktop apps only]|
|Minimum supported server||Windows Server 2016 [desktop apps only]|