BsRenderCompositor.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsRenderBeastPrerequisites.h"
  5. namespace bs
  6. {
  7. class RendererExtension;
  8. namespace ct
  9. {
  10. struct SceneInfo;
  11. class RendererViewGroup;
  12. class RenderCompositorNode;
  13. struct PooledStorageBuffer;
  14. struct FrameInfo;
  15. /** @addtogroup RenderBeast
  16. * @{
  17. */
  18. /** Inputs provided to each node in the render compositor hierarchy */
  19. struct RenderCompositorNodeInputs
  20. {
  21. RenderCompositorNodeInputs(const RendererViewGroup& viewGroup, const RendererView& view, const SceneInfo& scene,
  22. const RenderBeastOptions& options, const FrameInfo& frameInfo, RenderBeastFeatureSet featureSet)
  23. : viewGroup(viewGroup), view(view), scene(scene), options(options), frameInfo(frameInfo), featureSet(featureSet)
  24. { }
  25. const RendererViewGroup& viewGroup;
  26. const RendererView& view;
  27. const SceneInfo& scene;
  28. const RenderBeastOptions& options;
  29. const FrameInfo& frameInfo;
  30. const RenderBeastFeatureSet featureSet;
  31. // Callbacks to external systems can hook into the compositor
  32. SmallVector<RendererExtension*, 4> extPreBasePass;
  33. SmallVector<RendererExtension*, 4> extPostBasePass;
  34. SmallVector<RendererExtension*, 4> extPostLighting;
  35. SmallVector<RendererExtension*, 4> extOverlay;
  36. SmallVector<RenderCompositorNode*, 4> inputNodes;
  37. };
  38. /**
  39. * Node in the render compositor hierarchy. Nodes can be implemented to perform specific rendering tasks. Each node
  40. * can depend on other nodes in the hierarchy.
  41. *
  42. * @note Implementations must provide a getNodeId() and getDependencies() static method, which are expected to
  43. * return a unique name for the implemented node, as well as a set of nodes it depends on.
  44. */
  45. class RenderCompositorNode
  46. {
  47. public:
  48. virtual ~RenderCompositorNode() { }
  49. protected:
  50. friend class RenderCompositor;
  51. /** Executes the task implemented in the node. */
  52. virtual void render(const RenderCompositorNodeInputs& inputs) = 0;
  53. /**
  54. * Cleans up any temporary resources allocated in a render() call. Any resources lasting longer than one frame
  55. * should be kept alive and released in some other manner.
  56. */
  57. virtual void clear() = 0;
  58. };
  59. /**
  60. * Performs rendering by iterating over a hierarchy of render nodes. Each node in the hierarchy performs a specific
  61. * rendering tasks and passes its output to the dependant node. The system takes care of initializing, rendering and
  62. * cleaning up nodes automatically depending on their dependencies.
  63. */
  64. class RenderCompositor
  65. {
  66. /** Contains internal information about a single render node. */
  67. struct NodeInfo
  68. {
  69. RenderCompositorNode* node;
  70. UINT32 lastUseIdx;
  71. SmallVector<RenderCompositorNode*, 4> inputs;
  72. };
  73. public:
  74. ~RenderCompositor();
  75. /**
  76. * Rebuilds the render node hierarchy. Call this whenever some setting that may influence the render node
  77. * dependencies changes.
  78. *
  79. * @param[in] view Parent view to which this compositor belongs to.
  80. * @param[in] finalNode Identifier of the final node in the node hierarchy. This node is expected to write
  81. * to the views render target. All other nodes will be deduced from this node's
  82. * dependencies.
  83. */
  84. void build(const RendererView& view, const StringID& finalNode);
  85. /** Performs rendering using the current render node hierarchy. This is expected to be called once per frame. */
  86. void execute(RenderCompositorNodeInputs& inputs) const;
  87. private:
  88. /** Clears the render node hierarchy. */
  89. void clear();
  90. Vector<NodeInfo> mNodeInfos;
  91. bool mIsValid = false;
  92. /************************************************************************/
  93. /* NODE TYPES */
  94. /************************************************************************/
  95. public:
  96. /** Contains information about a specific node type. */
  97. struct NodeType
  98. {
  99. virtual ~NodeType() {};
  100. /** Creates a new node of this type. */
  101. virtual RenderCompositorNode* create() const = 0;
  102. /** Returns identifier for all the dependencies of a node of this type. */
  103. virtual SmallVector<StringID, 4> getDependencies(const RendererView& view) const = 0;
  104. StringID id;
  105. };
  106. /** Templated implementation of NodeType. */
  107. template<class T>
  108. struct TNodeType : NodeType
  109. {
  110. /** @copydoc NodeType::create() */
  111. RenderCompositorNode* create() const override { return bs_new<T>(); }
  112. /** @copydoc NodeType::getDependencies() */
  113. SmallVector<StringID, 4> getDependencies(const RendererView& view) const override
  114. {
  115. return T::getDependencies(view);
  116. }
  117. };
  118. /**
  119. * Registers a new type of node with the system. Each node type must first be registered before it can be used
  120. * in the node hierarchy.
  121. */
  122. template<class T>
  123. static void registerNodeType()
  124. {
  125. auto findIter = mNodeTypes.find(T::getNodeId());
  126. if (findIter != mNodeTypes.end())
  127. LOGERR("Found two render compositor nodes with the same name \"" + String(T::getNodeId().cstr()) + "\".");
  128. mNodeTypes[T::getNodeId()] = bs_new<TNodeType<T>>();
  129. }
  130. /** Releases any information about render node types. */
  131. static void cleanUp()
  132. {
  133. for (auto& entry : mNodeTypes)
  134. bs_delete(entry.second);
  135. mNodeTypes.clear();
  136. }
  137. private:
  138. static UnorderedMap<StringID, NodeType*> mNodeTypes;
  139. };
  140. /************************************************************************/
  141. /* BASE PASS NODES */
  142. /************************************************************************/
  143. /** Initializes the scene depth texture. Does not perform any rendering. */
  144. class RCNodeSceneDepth : public RenderCompositorNode
  145. {
  146. public:
  147. // Outputs
  148. SPtr<PooledRenderTexture> depthTex;
  149. static StringID getNodeId() { return "SceneDepth"; }
  150. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  151. protected:
  152. /** @copydoc RenderCompositorNode::render */
  153. void render(const RenderCompositorNodeInputs& inputs) override;
  154. /** @copydoc RenderCompositorNode::clear */
  155. void clear() override;
  156. };
  157. /**
  158. * Initializes the GBuffer textures and renders the base pass into the GBuffer. The base pass includes all the opaque
  159. * objects visible to the view.
  160. */
  161. class RCNodeGBuffer : public RenderCompositorNode
  162. {
  163. public:
  164. // Outputs
  165. SPtr<PooledRenderTexture> albedoTex;
  166. SPtr<PooledRenderTexture> normalTex;
  167. SPtr<PooledRenderTexture> roughMetalTex;
  168. SPtr<RenderTexture> renderTarget;
  169. static StringID getNodeId() { return "GBuffer"; }
  170. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  171. protected:
  172. /** @copydoc RenderCompositorNode::render */
  173. void render(const RenderCompositorNodeInputs& inputs) override;
  174. /** @copydoc RenderCompositorNode::clear */
  175. void clear() override;
  176. };
  177. /** Initializes the scene color texture and/or buffer. Does not perform any rendering. */
  178. class RCNodeSceneColor : public RenderCompositorNode
  179. {
  180. public:
  181. // Outputs
  182. /**
  183. * Contains scene color. If MSAA is used this texture will be null until the flattened data from the buffer is
  184. * first resolved into this texture.
  185. */
  186. SPtr<PooledRenderTexture> sceneColorTex;
  187. /**
  188. * Flattened, buffer version of sceneColorTex. Only available when MSAA is used, since random writes to multisampled
  189. * textures aren't supported on all render backends.
  190. */
  191. SPtr<PooledStorageBuffer> flattenedSceneColorBuffer;
  192. SPtr<RenderTexture> renderTarget;
  193. static StringID getNodeId() { return "SceneColor"; }
  194. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  195. protected:
  196. /** @copydoc RenderCompositorNode::render */
  197. void render(const RenderCompositorNodeInputs& inputs) override;
  198. /** @copydoc RenderCompositorNode::clear */
  199. void clear() override;
  200. };
  201. /**
  202. * Determines which samples in the GBuffer require per-sample shading and outputs a texture with the coverage (for use
  203. * in compute shaders) and populates the primary stencil buffer as well (for use in non-compute shaders). Only relevant
  204. * when rendering with MSAA enabled.
  205. */
  206. class RCNodeMSAACoverage : public RenderCompositorNode
  207. {
  208. public:
  209. // Outputs
  210. SPtr<PooledRenderTexture> output;
  211. static StringID getNodeId() { return "MSAACoverage"; }
  212. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  213. protected:
  214. /** @copydoc RenderCompositorNode::render */
  215. void render(const RenderCompositorNodeInputs& inputs) override;
  216. /** @copydoc RenderCompositorNode::clear */
  217. void clear() override;
  218. };
  219. /************************************************************************/
  220. /* LIGHTING NODES */
  221. /************************************************************************/
  222. /** Initializes the light accumulation texture and/or buffer. Does not perform any rendering. */
  223. class RCNodeLightAccumulation : public RenderCompositorNode
  224. {
  225. public:
  226. // Outputs
  227. /**
  228. * Contains lighting information accumulated from multiple lights. If MSAA is used this texture will be null until
  229. * the flattened data from the buffer is first resolved into this texture.
  230. */
  231. SPtr<PooledRenderTexture> lightAccumulationTex;
  232. /**
  233. * Flattened, buffer version of lightAccumulationTex. Only available when MSAA is used, since random writes to
  234. * multisampled textures aren't supported on all render backends.
  235. */
  236. SPtr<PooledStorageBuffer> flattenedLightAccumBuffer;
  237. SPtr<RenderTexture> renderTarget;
  238. static StringID getNodeId() { return "LightAccumulation"; }
  239. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  240. protected:
  241. /** @copydoc RenderCompositorNode::render */
  242. void render(const RenderCompositorNodeInputs& inputs) override;
  243. /** @copydoc RenderCompositorNode::clear */
  244. void clear() override;
  245. bool mOwnsTexture = false;
  246. };
  247. /**
  248. * Performs tiled deferred lighting, outputing any lighting information in the light accumulation buffer.
  249. * By default only non-shadowed lights are rendered, as shadowed ones are handled using standard deferred.
  250. */
  251. class RCNodeTiledDeferredLighting : public RenderCompositorNode
  252. {
  253. public:
  254. // Outputs
  255. RCNodeLightAccumulation* output;
  256. static StringID getNodeId() { return "TiledDeferredLighting"; }
  257. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  258. protected:
  259. /** @copydoc RenderCompositorNode::render */
  260. void render(const RenderCompositorNodeInputs& inputs) override;
  261. /** @copydoc RenderCompositorNode::clear */
  262. void clear() override;
  263. };
  264. /**
  265. * Performs standard deferred lighting, outputting any lighting information in the light accumulation buffer.
  266. * Normally only used for shadowed light rendering, unless tiled deferred is unavailable, in which case it renders
  267. * all lights.
  268. */
  269. class RCNodeStandardDeferredLighting : public RenderCompositorNode
  270. {
  271. public:
  272. static StringID getNodeId() { return "StandardDeferredLighting"; }
  273. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  274. protected:
  275. /** @copydoc RenderCompositorNode::render */
  276. void render(const RenderCompositorNodeInputs& inputs) override;
  277. /** @copydoc RenderCompositorNode::clear */
  278. void clear() override;
  279. SPtr<RenderTexture> mLightOcclusionRT;
  280. };
  281. /**
  282. * Render reflection probes and sky reflections using standard deferred lighting. Only used if tiled deferred IBL
  283. * is not supported.
  284. */
  285. class RCNodeStandardDeferredIBL : public RenderCompositorNode
  286. {
  287. public:
  288. static StringID getNodeId() { return "StandardDeferredIBL"; }
  289. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  290. protected:
  291. /** @copydoc RenderCompositorNode::render */
  292. void render(const RenderCompositorNodeInputs& inputs) override;
  293. /** @copydoc RenderCompositorNode::clear */
  294. void clear() override;
  295. };
  296. /**
  297. * In case light accumulation was rendered into a buffer instead of a texture (if MSAA is used), this node will
  298. * unflatten the buffer and write its contents into the light accumulation texture.
  299. */
  300. class RCNodeUnflattenLightAccum : public RenderCompositorNode
  301. {
  302. public:
  303. // Outputs
  304. RCNodeLightAccumulation* output;
  305. static StringID getNodeId() { return "UnflattenLightAccum"; }
  306. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  307. protected:
  308. /** @copydoc RenderCompositorNode::render */
  309. void render(const RenderCompositorNodeInputs& inputs) override;
  310. /** @copydoc RenderCompositorNode::clear */
  311. void clear() override;
  312. };
  313. /** Evaluates indirect lighting from the light probe volume, if available, or the sky irradiance otherwise. */
  314. class RCNodeIndirectLighting : public RenderCompositorNode
  315. {
  316. public:
  317. // Outputs to the unflattened RCNodeLightAccumulation
  318. static StringID getNodeId() { return "IndirectLighting"; }
  319. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  320. protected:
  321. /** @copydoc RenderCompositorNode::render */
  322. void render(const RenderCompositorNodeInputs& inputs) override;
  323. /** @copydoc RenderCompositorNode::clear */
  324. void clear() override;
  325. };
  326. /**
  327. * Performs tiled deferred image based lighting, combines it with direct lighting present in the light accumulation
  328. * buffer and outputs the results to the scene color texture or buffer.
  329. */
  330. class RCNodeTiledDeferredIBL : public RenderCompositorNode
  331. {
  332. public:
  333. // Outputs
  334. RCNodeLightAccumulation* output;
  335. static StringID getNodeId() { return "TiledDeferredIBL"; }
  336. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  337. protected:
  338. /** @copydoc RenderCompositorNode::render */
  339. void render(const RenderCompositorNodeInputs& inputs) override;
  340. /** @copydoc RenderCompositorNode::clear */
  341. void clear() override;
  342. };
  343. /** Renders transparent objects using clustered forward rendering. */
  344. class RCNodeClusteredForward : public RenderCompositorNode
  345. {
  346. public:
  347. RCNodeClusteredForward();
  348. static StringID getNodeId() { return "ClusteredForward"; }
  349. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  350. protected:
  351. /** @copydoc RenderCompositorNode::render */
  352. void render(const RenderCompositorNodeInputs& inputs) override;
  353. /** @copydoc RenderCompositorNode::clear */
  354. void clear() override;
  355. };
  356. /**
  357. * In case scene color was rendered into a buffer instead of a texture (if MSAA is used), this node will
  358. * unflatten the buffer and write its contents into the scene color texture.
  359. */
  360. class RCNodeUnflattenSceneColor : public RenderCompositorNode
  361. {
  362. public:
  363. // Outputs
  364. RCNodeSceneColor* output;
  365. static StringID getNodeId() { return "UnflattenSceneColor"; }
  366. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  367. protected:
  368. /** @copydoc RenderCompositorNode::render */
  369. void render(const RenderCompositorNodeInputs& inputs) override;
  370. /** @copydoc RenderCompositorNode::clear */
  371. void clear() override;
  372. };
  373. /**
  374. * Renders the skybox into the scene color texture. If skybox texture is not available, a solid color will be rendered
  375. * instead.
  376. */
  377. class RCNodeSkybox : public RenderCompositorNode
  378. {
  379. public:
  380. static StringID getNodeId() { return "Skybox"; }
  381. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  382. protected:
  383. /** @copydoc RenderCompositorNode::render */
  384. void render(const RenderCompositorNodeInputs& inputs) override;
  385. /** @copydoc RenderCompositorNode::clear */
  386. void clear() override;
  387. };
  388. /** Moves the contents of the scene color texture into the view's output target. */
  389. class RCNodeFinalResolve : public RenderCompositorNode
  390. {
  391. public:
  392. static StringID getNodeId() { return "FinalResolve"; }
  393. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  394. protected:
  395. /** @copydoc RenderCompositorNode::render */
  396. void render(const RenderCompositorNodeInputs& inputs) override;
  397. /** @copydoc RenderCompositorNode::clear */
  398. void clear() override;
  399. };
  400. /************************************************************************/
  401. /* POST PROCESS NODES */
  402. /************************************************************************/
  403. /**
  404. * Helper node used for post-processing. Takes care of allocating and switching between textures used for post process
  405. * effects.
  406. */
  407. class RCNodePostProcess : public RenderCompositorNode
  408. {
  409. public:
  410. RCNodePostProcess();
  411. /**
  412. * Returns a texture that can be used for rendering a post-process effect, and the result of the previous
  413. * output. Switches these textures so the next call they are returned in the opposite parameters.
  414. */
  415. void getAndSwitch(const RendererView& view, SPtr<RenderTexture>& output, SPtr<Texture>& lastFrame) const;
  416. /** Returns a texture that contains the last rendererd post process output. */
  417. SPtr<Texture> getLastOutput() const;
  418. static StringID getNodeId() { return "PostProcess"; }
  419. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  420. protected:
  421. /** @copydoc RenderCompositorNode::render */
  422. void render(const RenderCompositorNodeInputs& inputs) override;
  423. /** @copydoc RenderCompositorNode::clear */
  424. void clear() override;
  425. mutable SPtr<PooledRenderTexture> mOutput[2];
  426. mutable bool mAllocated[2];
  427. mutable UINT32 mCurrentIdx = 0;
  428. };
  429. /**
  430. * Performs tone mapping on the contents of the scene color texture. At the same time resolves MSAA into a non-MSAA
  431. * scene color texture.
  432. */
  433. class RCNodeTonemapping : public RenderCompositorNode
  434. {
  435. public:
  436. SPtr<PooledRenderTexture> eyeAdaptation;
  437. SPtr<PooledRenderTexture> prevEyeAdaptation;
  438. ~RCNodeTonemapping();
  439. static StringID getNodeId() { return "Tonemapping"; }
  440. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  441. protected:
  442. /** @copydoc RenderCompositorNode::render */
  443. void render(const RenderCompositorNodeInputs& inputs) override;
  444. /** @copydoc RenderCompositorNode::clear */
  445. void clear() override;
  446. /**
  447. * Returns true if the more advanced (and more expensive) compute shader based method of computing eye adaptation
  448. * should be used.
  449. */
  450. bool useHistogramEyeAdapatation(const RenderCompositorNodeInputs& inputs);
  451. SPtr<PooledRenderTexture> mTonemapLUT;
  452. UINT64 mTonemapLastUpdateHash = -1;
  453. };
  454. /** Renders the depth of field effect using Gaussian blurring. */
  455. class RCNodeGaussianDOF : public RenderCompositorNode
  456. {
  457. public:
  458. static StringID getNodeId() { return "GaussianDOF"; }
  459. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  460. protected:
  461. /** @copydoc RenderCompositorNode::render */
  462. void render(const RenderCompositorNodeInputs& inputs) override;
  463. /** @copydoc RenderCompositorNode::clear */
  464. void clear() override;
  465. };
  466. /** Renders FXAA. */
  467. class RCNodeFXAA : public RenderCompositorNode
  468. {
  469. public:
  470. static StringID getNodeId() { return "FXAA"; }
  471. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  472. protected:
  473. /** @copydoc RenderCompositorNode::render */
  474. void render(const RenderCompositorNodeInputs& inputs) override;
  475. /** @copydoc RenderCompositorNode::clear */
  476. void clear() override;
  477. };
  478. /************************************************************************/
  479. /* SCREEN SPACE */
  480. /************************************************************************/
  481. /** Resolves the depth buffer (if multi-sampled). Otherwise just references the original depth buffer. */
  482. class RCNodeResolvedSceneDepth : public RenderCompositorNode
  483. {
  484. public:
  485. SPtr<PooledRenderTexture> output;
  486. static StringID getNodeId() { return "ResolvedSceneDepth"; }
  487. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  488. protected:
  489. /** @copydoc RenderCompositorNode::render */
  490. void render(const RenderCompositorNodeInputs& inputs) override;
  491. /** @copydoc RenderCompositorNode::clear */
  492. void clear() override;
  493. bool mPassThrough = false;
  494. };
  495. /** Builds the hierarchical Z buffer. */
  496. class RCNodeHiZ : public RenderCompositorNode
  497. {
  498. public:
  499. SPtr<PooledRenderTexture> output;
  500. static StringID getNodeId() { return "HiZ"; }
  501. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  502. protected:
  503. /** @copydoc RenderCompositorNode::render */
  504. void render(const RenderCompositorNodeInputs& inputs) override;
  505. /** @copydoc RenderCompositorNode::clear */
  506. void clear() override;
  507. };
  508. /** Renders screen space ambient occlusion. */
  509. class RCNodeSSAO : public RenderCompositorNode
  510. {
  511. public:
  512. SPtr<PooledRenderTexture> output;
  513. static StringID getNodeId() { return "SSAO"; }
  514. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  515. protected:
  516. /** @copydoc RenderCompositorNode::render */
  517. void render(const RenderCompositorNodeInputs& inputs) override;
  518. /** @copydoc RenderCompositorNode::clear */
  519. void clear() override;
  520. };
  521. /** Renders screen space reflections. */
  522. class RCNodeSSR : public RenderCompositorNode
  523. {
  524. public:
  525. SPtr<PooledRenderTexture> output;
  526. ~RCNodeSSR();
  527. static StringID getNodeId() { return "SSR"; }
  528. static SmallVector<StringID, 4> getDependencies(const RendererView& view);
  529. protected:
  530. /** @copydoc RenderCompositorNode::render */
  531. void render(const RenderCompositorNodeInputs& inputs) override;
  532. /** @copydoc RenderCompositorNode::clear */
  533. void clear() override;
  534. /** Cleans up any outputs. */
  535. void deallocOutputs();
  536. SPtr<PooledRenderTexture> mPrevFrame;
  537. };
  538. /** @} */
  539. }}