Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-05-19 01:32:27 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-05-19 01:35:36 +0300
commitb3e53d6daaf95860c7a5fd16d79b411dbc7b0295 (patch)
tree96aeec4240adb482bdecdd62bcd7e88f0a6fb987 /source/blender/draw/engines/eevee_next/eevee_instance.cc
parentf4028630bfdaa0e22be0872f209505dbb6b0aa2d (diff)
EEVEE-Next: Fix display of compiling shader countdown
Also fix naming convention on public variable.
Diffstat (limited to 'source/blender/draw/engines/eevee_next/eevee_instance.cc')
-rw-r--r--source/blender/draw/engines/eevee_next/eevee_instance.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_instance.cc b/source/blender/draw/engines/eevee_next/eevee_instance.cc
index d037b46eaef..606630bcdef 100644
--- a/source/blender/draw/engines/eevee_next/eevee_instance.cc
+++ b/source/blender/draw/engines/eevee_next/eevee_instance.cc
@@ -8,6 +8,8 @@
* An instance contains all structures needed to do a complete render.
*/
+#include <sstream>
+
#include "BKE_global.h"
#include "BKE_object.h"
#include "BLI_rect.h"
@@ -184,6 +186,12 @@ void Instance::draw_viewport(DefaultFramebufferList *dfbl)
UNUSED_VARS(dfbl);
render_sample();
velocity.step_swap();
+
+ if (materials.queued_shaders_count > 0) {
+ std::stringstream ss;
+ ss << "Compiling Shaders " << materials.queued_shaders_count;
+ info = ss.str();
+ }
}
/** \} */