1818#include " frontend/GPUDisplayFrontend.h"
1919#include " backend/GPUDisplayBackend.h"
2020#include " GPUDisplayInterface.h"
21+ #include " GPUSettings.h"
2122
2223#include " ../utils/vecpod.h"
2324#include " ../utils/qsem.h"
@@ -37,7 +38,7 @@ class GPUTRDGeometry;
3738class GPUDisplay : public GPUDisplayInterface
3839{
3940 public:
40- GPUDisplay (GPUDisplayFrontend* frontend, GPUChainTracking* chain, GPUQA* qa, const GPUParam* param = nullptr , const GPUCalibObjectsConst* calib = nullptr , const GPUSettingsDisplay* config = nullptr );
41+ GPUDisplay (GPUDisplayFrontend* frontend, GPUChainTracking* chain, GPUQA* qa, const GPUParam* param = nullptr , const GPUCalibObjectsConst* calib = nullptr , const GPUSettingsDisplay* config = nullptr , const GPUSettingsProcessing* proc = nullptr );
4142 GPUDisplay (const GPUDisplay&) = delete ;
4243 ~GPUDisplay () override = default ;
4344
@@ -71,6 +72,7 @@ class GPUDisplay : public GPUDisplayInterface
7172 };
7273 vecpod<vtx>* vertexBuffer () { return mVertexBuffer ; }
7374 const GPUParam* param () { return mParam ; }
75+ const GPUSettingsProcessing& GetProcessingSettings () const { return mProcessingSettings ; }
7476 GPUDisplayFrontend* frontend () { return mFrontend ; }
7577 bool drawTextInCompatMode () const { return mDrawTextInCompatMode ; }
7678 int32_t & drawTextFontSize () { return mDrawTextFontSize ; }
@@ -140,6 +142,9 @@ class GPUDisplay : public GPUDisplayInterface
140142 bool mVerbose = false ;
141143 };
142144
145+ static const GPUSettingsDisplay& GetConfig (GPUChainTracking* chain);
146+ static const GPUSettingsProcessing& GetProcessingConfig (GPUChainTracking* chain);
147+
143148 void DrawGLScene_internal (float animateTime = -1 .f, bool renderToMixBuffer = false );
144149 void DrawGLScene_updateEventData ();
145150 void DrawGLScene_cameraAndAnimation (float animateTime, float & mixSlaveImage, hmm_mat4& nextViewMatrix);
@@ -214,6 +219,7 @@ class GPUDisplay : public GPUDisplayInterface
214219 GPUSettingsDisplayLight mCfgL ;
215220 GPUSettingsDisplayHeavy mCfgH ;
216221 GPUSettingsDisplayRenderer mCfgR ;
222+ const GPUSettingsProcessing& mProcessingSettings ;
217223 GPUQA* mQA ;
218224 qSem mSemLockDisplay ;
219225
0 commit comments