diff options
Diffstat (limited to 'src/3d/renderer.h')
| -rw-r--r-- | src/3d/renderer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/3d/renderer.h b/src/3d/renderer.h index 8cb379b..453daf2 100644 --- a/src/3d/renderer.h +++ b/src/3d/renderer.h @@ -9,6 +9,10 @@ #include "gpu/gpu.h" #include <vector> +#if !defined(STRIP_ALL) +#include "3d/visual_debug.h" +#endif + // Matches the GPU struct layout struct GlobalUniforms { mat4 view_proj; @@ -28,6 +32,10 @@ class Renderer3D { void init(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format); void shutdown(); +#if !defined(STRIP_ALL) + static void SetDebugEnabled(bool enabled) { s_debug_enabled_ = enabled; } +#endif + // Renders the scene to the given texture view (Convenience: creates a pass) void render(const Scene& scene, const Camera& camera, float time, @@ -75,4 +83,9 @@ class Renderer3D { // Max objects capacity static const int kMaxObjects = 100; + +#if !defined(STRIP_ALL) + VisualDebug visual_debug_; + static bool s_debug_enabled_; +#endif }; |
