genesis-3d_engine/Engine/foundation/jobs/tp/tpjobslice.cc
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

43 lines
901 B
C++

//------------------------------------------------------------------------------
// tpjobslice.cc
// (C) 2009 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "jobs/tp/tpjobslice.h"
#include "jobs/tp/tpjob.h"
namespace Jobs
{
//------------------------------------------------------------------------------
/**
*/
TPJobSlice::TPJobSlice() :
job(0),
sliceIndex(InvalidIndex)
{
// empty
}
//------------------------------------------------------------------------------
/**
*/
TPJobSlice::~TPJobSlice()
{
this->job = 0;
}
//------------------------------------------------------------------------------
/**
*/
void
TPJobSlice::Setup(TPJob* job_, IndexT sliceIndex_)
{
n_assert(0 == this->job);
n_assert(0 != job_);
this->job = job_;
this->sliceIndex = sliceIndex_;
}
} // namespace Jobs