Skip to content

Commit 8b4e47c

Browse files
fix denoiser
1 parent 3d0a621 commit 8b4e47c

File tree

1 file changed

+2
-3
lines changed
  • examples_tests/39.DenoiserTonemapper

1 file changed

+2
-3
lines changed

examples_tests/39.DenoiserTonemapper/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ bool check_error(bool cond, const char* message)
5353
constexpr uint32_t overlap = 64;
5454
//constexpr uint32_t tileWidth = 1920/2, tileHeight = 1080/2;
5555
constexpr uint32_t tileWidth = 1024, tileHeight = 1024;
56-
constexpr uint32_t tileWidthWithOverlap = tileWidth + overlap * 2;
57-
constexpr uint32_t tileHeightWithOverlap = tileHeight + overlap * 2;
5856
constexpr uint32_t outputDimensions[] = { tileWidth ,tileHeight };
57+
constexpr uint32_t outputDimensionsWithOverlap[] = { tileWidth+overlap*2,tileHeight+overlap*2 };
5958

6059
int main(int argc, char* argv[])
6160
{
@@ -823,7 +822,7 @@ void main()
823822

824823
// set up denoiser
825824
auto& denoiser = denoisers[param.denoiserType];
826-
if (denoiser.m_denoiser->setup(m_cudaStream, outputDimensions, denoiserState, denoiser.stateSize, fakeScratchLink, denoiser.scratchSize, denoiser.stateOffset) != OPTIX_SUCCESS)
825+
if (denoiser.m_denoiser->setup(m_cudaStream, outputDimensionsWithOverlap, denoiserState, denoiser.stateSize, fakeScratchLink, denoiser.scratchSize, denoiser.stateOffset) != OPTIX_SUCCESS)
827826
{
828827
os::Printer::log(makeImageIDString(i) + "Could not setup the denoiser for the image resolution and denoiser buffers, skipping image!", ELL_ERROR);
829828
continue;

0 commit comments

Comments
 (0)