Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Queries the driver for resource requirements to build an acceleration structure.
Syntax
PFND3D12DDI_GET_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 Pfnd3d12ddiGetRaytracingAccelerationStructurePrebuildInfo0054;
void Pfnd3d12ddiGetRaytracingAccelerationStructurePrebuildInfo0054(
[in] D3D12DDI_HDEVICE unnamedParam1,
[in] const D3D12DDI_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_0054 *unnamedParam2,
[out] D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 *unnamedParam3
)
{...}
Parameters
[in] unnamedParam1
A handle to the device.
[in] unnamedParam2
Pointer to a D3D12DDI_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_0054 structure that contains the inputs.
[out] unnamedParam3
Pointer to a D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 structure that contains prebuild info.
Return value
None
Remarks
The result of this callback function lets the application provide the correct amount of output storage and scratch storage to BuildRaytracingAccelerationStructure given the same geometry.
This method is on the device as opposed to command list on the assumption that drivers must be able to calculate resource requirements for an acceleration structure build from only looking at the CPU visible portions of the call, without having to dereference any pointers to GPU memory containing actual vertex data, index data, etc.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 10, version 1809 |
| Header | d3d12umddi.h |
See also
D3D12DDI_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_0054
D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054