大结构改完 中间层加完
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "Point_Scene.h"
|
||||
|
||||
#include "detail/Datoviz_Point_Backend.h"
|
||||
#include "detail/Datoviz_Visual_Backend.h"
|
||||
#include "detail/Point_Core.h"
|
||||
#include "detail/Render_Domain.h"
|
||||
|
||||
@@ -57,9 +57,10 @@ struct Point_Scene::Impl {
|
||||
if (!visual)
|
||||
throw std::invalid_argument("Point_Scene requires a Point_Visual");
|
||||
render_domain.invoke([&] {
|
||||
backend = std::make_unique<detail::Datoviz_Point_Backend>(
|
||||
backend = std::make_unique<detail::Datoviz_Visual_Backend>(
|
||||
options.gpu_index, options.validation_enabled,
|
||||
detail::Scene_State{options.viewport, options.clear_color});
|
||||
detail::Scene_State{options.viewport, options.clear_color},
|
||||
options.visual_family);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -90,7 +91,7 @@ struct Point_Scene::Impl {
|
||||
detail::Input_Collector input;
|
||||
detail::Point_Frame_Strategy scheduler;
|
||||
detail::Render_Domain render_domain;
|
||||
std::unique_ptr<detail::Datoviz_Point_Backend> backend;
|
||||
std::unique_ptr<detail::Datoviz_Visual_Backend> backend;
|
||||
mutable std::mutex frame_mutex;
|
||||
std::shared_ptr<const Pixel_Frame> latest;
|
||||
std::atomic<bool> accepting{true};
|
||||
|
||||
Reference in New Issue
Block a user