From 0987464cf99120b6728949496ee41bd14a35b225 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 24 Dec 2022 17:08:15 +0800 Subject: Make it compile with MSVC. --- aa.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'aa.h') diff --git a/aa.h b/aa.h index 2be5f2c..7484bfd 100644 --- a/aa.h +++ b/aa.h @@ -93,13 +93,13 @@ public: uint64_t diffuse_seed; }; - thread_pool pool{thread_count, *this, images, samples}; + thread_pool pool{thread_count, *this, images, samples}; timer tim{true}; std::cerr << "Seeding tasks..." << std::endl; tim.start_measure(); - for (typeof(samples) i = 0; i < samples; ++i) { - pool.submit_task([](size_t tid, s_render_task &task, const aa_viewport &ctx, typeof(images) &images) { + for (decltype(samples) i = 0; i < samples; ++i) { + pool.submit_task([](size_t tid, s_render_task &task, const aa_viewport &ctx, decltype(images) &images) { basic_viewport vp{ ctx.cxyz, ctx.screen_center, ctx.image_width, ctx.image_height, @@ -110,7 +110,7 @@ public: bokeh_ctx bokeh{task.diffuse_seed + 6543210987ULL}; images[tid] = vp.render(task.diffuse_seed, bc, bokeh); }, s_render_task{ - .bias_seed=seedgen(), .diffuse_seed=seedgen() + seedgen(), seedgen() }); } tim.stop_measure(); -- cgit v1.2.3