本文整理汇总了C++中intrusive_ptr::AddSamplesSequence1D方法的典型用法代码示例。如果您正苦于以下问题:C++ intrusive_ptr::AddSamplesSequence1D方法的具体用法?C++ intrusive_ptr::AddSamplesSequence1D怎么用?C++ intrusive_ptr::AddSamplesSequence1D使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类intrusive_ptr
的用法示例。
在下文中一共展示了intrusive_ptr::AddSamplesSequence1D方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _RequestSamples
void PhotonLTEIntegrator::_RequestSamples(intrusive_ptr<Sampler> ip_sampler)
{
ASSERT(ip_sampler);
mp_direct_lighting_integrator->RequestSamples(ip_sampler);
if (m_params.m_gather_samples_num>0)
{
size_t gather_samples_num = m_params.m_gather_samples_num;
m_bsdf_1D_samples_id = ip_sampler->AddSamplesSequence1D(gather_samples_num, &gather_samples_num);
m_bsdf_2D_samples_id = ip_sampler->AddSamplesSequence2D(gather_samples_num, &gather_samples_num);
m_direction_1D_samples_id = ip_sampler->AddSamplesSequence1D(gather_samples_num, &gather_samples_num);
m_direction_2D_samples_id = ip_sampler->AddSamplesSequence2D(gather_samples_num, &gather_samples_num);
ASSERT(gather_samples_num >= m_params.m_gather_samples_num);
m_params.m_gather_samples_num = gather_samples_num;
}
m_media_offset1_id = ip_sampler->AddSamplesSequence1D(1);
m_media_offset2_id = ip_sampler->AddSamplesSequence1D(1);
}