Foundation
Loading...
Searching...
No Matches
Source
Renderer
Rasterizer
TAA.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "../Rasterizer.hpp"
3
4
using namespace
Foundation
;
5
using namespace
Foundation::Core
;
6
using namespace
Foundation::RenderCore
;
7
8
struct
TAAConfig
9
{
10
float
historyWeight
{0.9f};
11
float
jitterSpread
{1.0f};
12
uint32_t
sampleCount
{8u};
13
bool
neighborhoodClamp
{
true
};
14
};
15
16
extern
void
TAAFeatureCallback
(
RasterFeatureContext
& ctx,
void
const
* configPtr);
17
18
inline
RasterFeature
TAAFeature
(
TAAConfig
const
* config)
19
{
20
return
RasterFeature
{
21
.
order
= 1000,
22
.config = config,
23
.injectionPoint =
RasterInjectionPoint::AfterLighting
,
24
.callback =
TAAFeatureCallback
,
25
};
26
}
RasterInjectionPoint::AfterLighting
@ AfterLighting
TAAFeature
RasterFeature TAAFeature(TAAConfig const *config)
Definition
TAA.hpp:18
TAAFeatureCallback
void TAAFeatureCallback(RasterFeatureContext &ctx, void const *configPtr)
Definition
TAA.cpp:17
Foundation::Core
Lock-free atomic primitives and implementations of data structures.
Definition
Allocator.hpp:6
Foundation::RenderCore
Core functionalities for rendering, including the Frame Graph implementation.
Definition
Bindless.cpp:2
Foundation
Definition
Allocator.hpp:6
RasterFeatureContext
Definition
Rasterizer.hpp:12
RasterFeature
Definition
Rasterizer.hpp:40
RasterFeature::order
int order
Definition
Rasterizer.hpp:41
TAAConfig
Definition
TAA.hpp:9
TAAConfig::jitterSpread
float jitterSpread
Definition
TAA.hpp:11
TAAConfig::historyWeight
float historyWeight
Definition
TAA.hpp:10
TAAConfig::neighborhoodClamp
bool neighborhoodClamp
Definition
TAA.hpp:13
TAAConfig::sampleCount
uint32_t sampleCount
Definition
TAA.hpp:12
Generated by
1.9.8