nvidia-texture-tools icon indicating copy to clipboard operation
nvidia-texture-tools copied to clipboard

nvtt doesn't compile with TBB

Open gedalia opened this issue 8 years ago • 0 comments

tested against tbb 4.5

struct TaskFunctor { TaskFunctor(Task * task, void * context) : task(task), context(context) {} void operator()(int & n) const { task(context, n); } Task * task; void * context; };

the member variable initialization is bogus,

but bigger issue is
virtual void dispatch(Task * task, void * context, int count) { parallel_for(blocked_range(0, count, 1), TaskFunctor(task, context)); }

doesn't compile putting tbb:: in front of parallel_for and blocked_range helps a bit but still fails with tbb/parallel_for.h(102) : error C2664: 'void nvtt::TaskFunctor::operator ()(int &) const' : cannot convert argument 1 from 'tbb::blocked_range' to 'int &' tbb/parallel_for.h(102) : while compiling class template member function 'void tbb::interface9::internal::start_for<Range,Body,const tbb::auto_partitioner>::run_body(Range &)' Seems like this has probably been broken for a while

gedalia avatar Mar 20 '17 20:03 gedalia