Skip to content

Commit

Permalink
fixed taa
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Sep 15, 2024
1 parent 904dfdd commit eb661d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 94 deletions.
91 changes: 0 additions & 91 deletions data/pipelines/lumix.d.lua

This file was deleted.

8 changes: 5 additions & 3 deletions src/renderer/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include "texture.h"
#include <imgui/imgui.h>

// TODO TAA with low fps

// TODO crashes:
// TODO crash when context menu is outside of main window

Expand Down Expand Up @@ -1416,7 +1414,11 @@ struct PipelineImpl final : Pipeline {
}

for (RenderPlugin* plugin : m_renderer.getPlugins()) {
if (plugin->renderAA(gbuffer, result, *this) != INVALID_RENDERBUFFER) break;
RenderBufferHandle rb = plugin->renderAA(gbuffer, result, *this);
if (rb != INVALID_RENDERBUFFER) {
result = rb;
break;
}
}

render2D(result);
Expand Down
1 change: 1 addition & 0 deletions src/renderer/postprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ struct TAA : public RenderPlugin {

const RenderBufferHandle taa_output = pipeline.createRenderbuffer({
.format = gpu::TextureFormat::RGBA16F,
.flags = gpu::TextureFlags::RENDER_TARGET | gpu::TextureFlags::NO_MIPS | gpu::TextureFlags::COMPUTE_WRITE,
.debug_name = "taa_output"
});
stream.memoryBarrier(pipeline.toTexture(taa_tmp));
Expand Down

0 comments on commit eb661d9

Please sign in to comment.