// d3d12umddi.h
typedef struct D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 {
UINT64 ResultDataMaxSizeInBytes;
UINT64 ScratchDataSizeInBytes;
UINT64 UpdateScratchDataSizeInBytes;
} D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054;
View the official Windows Driver Kit DDI referenceNo description available.
Contains memory requirements for a ray tracing acceleration structure build.
ResultDataMaxSizeInBytesSize required to hold the result of an acceleration structure build based on the specified inputs.
ScratchDataSizeInBytesScratch storage on the GPU that is required during acceleration structure build, based on the specified inputs.
UpdateScratchDataSizeInBytesScratch storage on the GPU that is required during an acceleration structure update, based on the specified inputs. This only needs to be called for the original acceleration structure build, and defines the scratch storage requirement for every acceleration structure update other than the initial build.
If the D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE flag is not specified in D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS, this parameter returns 0.