|
|
|
@ -92,6 +92,8 @@ namespace AZ
|
|
|
|
AZ_Error("DiffuseProbeGridFeatureProcessor", m_probeGridRenderData.m_srgLayout != nullptr, "Failed to find ObjectSrg layout");
|
|
|
|
AZ_Error("DiffuseProbeGridFeatureProcessor", m_probeGridRenderData.m_srgLayout != nullptr, "Failed to find ObjectSrg layout");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (device->GetFeatures().m_rayTracing)
|
|
|
|
|
|
|
|
{
|
|
|
|
// initialize the buffer pools for the DiffuseProbeGrid visualization
|
|
|
|
// initialize the buffer pools for the DiffuseProbeGrid visualization
|
|
|
|
m_visualizationBufferPools = RHI::RayTracingBufferPools::CreateRHIRayTracingBufferPools();
|
|
|
|
m_visualizationBufferPools = RHI::RayTracingBufferPools::CreateRHIRayTracingBufferPools();
|
|
|
|
m_visualizationBufferPools->Init(device);
|
|
|
|
m_visualizationBufferPools->Init(device);
|
|
|
|
@ -107,6 +109,7 @@ namespace AZ
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Data::AssetBus::MultiHandler::BusConnect(m_visualizationModelAsset.GetId());
|
|
|
|
Data::AssetBus::MultiHandler::BusConnect(m_visualizationModelAsset.GetId());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
EnableSceneNotification();
|
|
|
|
EnableSceneNotification();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|