Browse Source

Add the skeleton of SVGF

Panagiotis Christopoulos Charitos 4 years ago
parent
commit
f41ba70004
3 changed files with 61 additions and 2 deletions
  1. 1 2
      .gitignore
  2. 20 0
      AnKi/Renderer/Svgf.cpp
  3. 40 0
      AnKi/Renderer/Svgf.h

+ 1 - 2
.gitignore

@@ -1,4 +1,3 @@
 build*/*
-.vscode/*
-.vs/*
 out/*
+.*

+ 20 - 0
AnKi/Renderer/Svgf.cpp

@@ -0,0 +1,20 @@
+// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
+// All rights reserved.
+// Code licensed under the BSD License.
+// http://www.anki3d.org/LICENSE
+
+#include <AnKi/Renderer/Svgf.h>
+
+namespace anki
+{
+
+Svgf::Svgf(Renderer* r)
+	: RendererObject(r)
+{
+}
+
+Svgf::~Svgf()
+{
+}
+
+} // end namespace anki

+ 40 - 0
AnKi/Renderer/Svgf.h

@@ -0,0 +1,40 @@
+// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
+// All rights reserved.
+// Code licensed under the BSD License.
+// http://www.anki3d.org/LICENSE
+
+#pragma once
+
+#include <AnKi/Renderer/RendererObject.h>
+
+namespace anki
+{
+
+/// @addtogroup renderer
+/// @{
+
+/// Spatio-termporal variance filtering.
+class Svgf : public RendererObject
+{
+public:
+	Svgf(Renderer* r);
+
+	~Svgf();
+
+	ANKI_USE_RESULT Error init(const ConfigSet& cfg);
+
+	/// Populate the rendergraph.
+	void populateRenderGraph(RenderingContext& ctx);
+
+private:
+	ShaderProgramResourcePtr m_prog;
+
+	class
+	{
+	public:
+		RenderingContext* m_ctx = nullptr;
+	} m_runCtx;
+};
+/// @}
+
+} // end namespace anki