D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 structure (d3d12umddi.h)

Contains memory requirements for a ray tracing acceleration structure build.

Syntax

typedef struct D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054 {
  UINT64 ResultDataMaxSizeInBytes;
  UINT64 ScratchDataSizeInBytes;
  UINT64 UpdateScratchDataSizeInBytes;
} D3D12DDI_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_0054;

Members

ResultDataMaxSizeInBytes

Size required to hold the result of an acceleration structure build based on the specified inputs.

ScratchDataSizeInBytes

Scratch storage on the GPU that is required during acceleration structure build, based on the specified inputs.

UpdateScratchDataSizeInBytes

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

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809
Header d3d12umddi.h