升级
This commit is contained in:
@@ -652,7 +652,7 @@ TEST(Renderive_Core2, AxisRasterLayoutCoversAxisSwapAndEveryReversal) {
|
||||
EXPECT_DOUBLE_EQ(points.back().x, 130.0);
|
||||
EXPECT_DOUBLE_EQ(points.back().y, 30.0);
|
||||
}
|
||||
TEST(Renderive_Core2, PartitionedPlotsBuildExplicitInternalTaskGraphs) {
|
||||
TEST(Renderive_Core2, PartitionedPlotsBuildPropertyDrivenTaskGraphs) {
|
||||
Plot_Core plot;
|
||||
plot.init();
|
||||
const auto root = plot.root_renderable();
|
||||
@@ -680,9 +680,26 @@ TEST(Renderive_Core2, PartitionedPlotsBuildExplicitInternalTaskGraphs) {
|
||||
EXPECT_EQ(spectrum->get<&Spectrum::Properties::partition_count>(), 4);
|
||||
EXPECT_EQ(waterfall->get<&Waterfall::Properties::partition_count>(), 4);
|
||||
EXPECT_EQ(afterglow->get<&Afterglow::Properties::partition_count>(), 4);
|
||||
EXPECT_EQ(spectrum->task_graph()->nodes().size(), 18u);
|
||||
EXPECT_EQ(waterfall->task_graph()->nodes().size(), 18u);
|
||||
EXPECT_EQ(afterglow->task_graph()->nodes().size(), 35u);
|
||||
EXPECT_EQ(spectrum->task_graph()->nodes().size(), 6u);
|
||||
EXPECT_EQ(waterfall->task_graph()->nodes().size(), 6u);
|
||||
EXPECT_EQ(afterglow->task_graph()->nodes().size(), 11u);
|
||||
|
||||
spectrum->set<&Spectrum::Properties::partition_count>(1);
|
||||
waterfall->set<&Waterfall::Properties::partition_count>(1);
|
||||
afterglow->set<&Afterglow::Properties::partition_count>(1);
|
||||
spectrum->scene().publish_frame_state();
|
||||
EXPECT_EQ(spectrum->task_graph()->nodes().size(), 3u);
|
||||
EXPECT_EQ(waterfall->task_graph()->nodes().size(), 3u);
|
||||
EXPECT_EQ(afterglow->task_graph()->nodes().size(), 5u);
|
||||
|
||||
spectrum->set<&Spectrum::Properties::partition_count>(0);
|
||||
waterfall->set<&Waterfall::Properties::partition_count>(0);
|
||||
afterglow->set<&Afterglow::Properties::partition_count>(0);
|
||||
spectrum->scene().publish_frame_state();
|
||||
const auto workers = Scene_Base::task_executor_worker_count();
|
||||
EXPECT_EQ(spectrum->task_graph()->nodes().size(), workers + 2u);
|
||||
EXPECT_EQ(waterfall->task_graph()->nodes().size(), workers + 2u);
|
||||
EXPECT_EQ(afterglow->task_graph()->nodes().size(), workers * 2u + 3u);
|
||||
}
|
||||
TEST(Renderive_Core2, PlottableAxesAreDataDependenciesAndPaintOverlays) {
|
||||
Plot_Core plot;
|
||||
|
||||
Reference in New Issue
Block a user