Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 33 files). Show all
Unified · Split
| @@ -250,6 +250,9 @@ static std::string getFileContent(const std::string& fileName, const std::string · 249 unmodified lines | |||
| 250 | return defaultContent; | 250 | return defaultContent; |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | DebugDeferredBuffer::StandardPipelines DebugDeferredBuffer::_pipelines; | ||
| 254 | DebugDeferredBuffer::CustomPipelines DebugDeferredBuffer::_customPipelines; | ||
| 255 | |||
| 253 | #include <QStandardPaths> // TODO REMOVE: Temporary until UI | 256 | #include <QStandardPaths> // TODO REMOVE: Temporary until UI |
| 254 | DebugDeferredBuffer::DebugDeferredBuffer() { | 257 | DebugDeferredBuffer::DebugDeferredBuffer() { |
| 255 | // TODO REMOVE: Temporary until UI | 258 | // TODO REMOVE: Temporary until UI |
| @@ -334,7 +337,7 @@ std::string DebugDeferredBuffer::getShaderSourceCode(Mode mode, const std::strin · 78 unmodified lines | |||
| 334 | return std::string(); | 337 | return std::string(); |
| 335 | } | 338 | } |
| 336 | 339 | ||
| 337 | bool DebugDeferredBuffer::pipelineNeedsUpdate(Mode mode, const std::string& customFile) const { | 340 | bool DebugDeferredBuffer::pipelineNeedsUpdate(Mode mode, const std::string& customFile) { |
| 338 | if (mode != CustomMode) { | 341 | if (mode != CustomMode) { |
| 339 | return !_pipelines[mode]; | 342 | return !_pipelines[mode]; |
| 340 | } | 343 | } |
| @@ -351,7 +354,7 @@ bool DebugDeferredBuffer::pipelineNeedsUpdate(Mode mode, const std::string& cust · 10 unmodified lines | |||
| 351 | return true; | 354 | return true; |
| 352 | } | 355 | } |
| 353 | 356 | ||
| 354 | const gpu::PipelinePointer& DebugDeferredBuffer::getPipeline(Mode mode, const std::string& customFile) { | 357 | gpu::PipelinePointer& DebugDeferredBuffer::getPipeline(Mode mode, const std::string& customFile) { |
| 355 | if (pipelineNeedsUpdate(mode, customFile)) { | 358 | if (pipelineNeedsUpdate(mode, customFile)) { |
| 356 | static_assert(shader::render_utils::program::debug_deferred_buffer != 0, "Validate debug deferred program"); | 359 | static_assert(shader::render_utils::program::debug_deferred_buffer != 0, "Validate debug deferred program"); |
| 357 | 360 | ||