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 | 250 | return defaultContent; |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | +DebugDeferredBuffer::StandardPipelines DebugDeferredBuffer::_pipelines; | |
| 254 | +DebugDeferredBuffer::CustomPipelines DebugDeferredBuffer::_customPipelines; | |
| 255 | + | |
| 253 | 256 | #include <QStandardPaths> // TODO REMOVE: Temporary until UI |
| 254 | 257 | DebugDeferredBuffer::DebugDeferredBuffer() { |
| 255 | 258 | // TODO REMOVE: Temporary until UI |
| @@ -334,7 +337,7 @@ std::string DebugDeferredBuffer::getShaderSourceCode(Mode mode, const std::strin · 78 unmodified lines | ||
| 334 | 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 | 341 | if (mode != CustomMode) { |
| 339 | 342 | return !_pipelines[mode]; |
| 340 | 343 | } |
| @@ -351,7 +354,7 @@ bool DebugDeferredBuffer::pipelineNeedsUpdate(Mode mode, const std::string& cust · 10 unmodified lines | ||
| 351 | 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 | 358 | if (pipelineNeedsUpdate(mode, customFile)) { |
| 356 | 359 | static_assert(shader::render_utils::program::debug_deferred_buffer != 0, "Validate debug deferred program"); |
| 357 | 360 | |