Skip to content

Commit 27fd427

Browse files
committed
make rwmc accumulator match concept
1 parent 495924c commit 27fd427

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/nbl/builtin/hlsl/rwmc/CascadeAccumulator.hlsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct CascadeAccumulator
4141

4242
using cascade_layer_scalar_type = typename vector_traits<CascadeLayerType>::scalar_type;
4343
using this_t = CascadeAccumulator<CascadeLayerType, CascadeCount>;
44+
using input_sample_type = CascadeLayerType;
4445
using output_storage_type = CascadeEntry;
4546
using initialization_data = SplattingParameters;
4647
output_storage_type accumulation;
@@ -66,7 +67,7 @@ struct CascadeAccumulator
6667
}
6768

6869
// most of this code is stolen from https://cg.ivd.kit.edu/publications/2018/rwmc/tool/split.cpp
69-
void addSample(uint32_t sampleCount, CascadeLayerType _sample)
70+
void addSample(uint32_t sampleCount, input_sample_type _sample)
7071
{
7172
const cascade_layer_scalar_type log2Start = splattingParameters.log2Start;
7273
const cascade_layer_scalar_type log2Base = splattingParameters.log2Base;

0 commit comments

Comments
 (0)