Hey,
I have a problem with initializing BLAS with DX12. What is failing is function - BuildRaytracingAccelrationStructure.
Here is an error:
D3D12 ERROR: ID3D12CommandList::BuildRaytracingAccelerationStructure: D3D12_RAYTRACING_GEOMETRY_DESC[0].Triangles.IndexBuffer + SizeInBytes - 1 (0x000000000714b08f) exceeds end of the virtual address range of Resource (0x0000026741E0AB50:'Unnamed ID3D12Resource Object', GPU VA Range: 0x000000000714b000 - 0x000000000714b01f). [ RESOURCE_MANIPULATION ERROR #1158: BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INVALID]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR RESOURCE_MANIPULATION #1158: BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INVALID ]
Here is full function. Exception is thrown at the very end of it:
void Renderer::CreateBLAS(std::shared_ptr<ModelClass> model)
{
// Describe the geometry that goes in the bottom acceleration structure(s)
D3D12_RAYTRACING_GEOMETRY_DESC geometryDesc{};
geometryDesc …