D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO structure (d3d12.h)

Represents prebuild information about a raytracing acceleration structure. Get an instance of this structure by calling GetRaytracingAccelerationStructurePrebuildInfo.

Syntax

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

Members

ResultDataMaxSizeInBytes

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

ScratchDataSizeInBytes

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

UpdateScratchDataSizeInBytes

Scratch storage on GPU 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 D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE flag is not specified when calling GetRaytracingAccelerationStructurePrebuildInfo, the returned value of this field is 0.

UpdateScratchDataSizeInBytes

Requirements

Requirement Value
Header d3d12.h