Skip to content

Commit cf70c2d

Browse files
fix bad merge
1 parent 9cab317 commit cf70c2d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

examples_tests/22.RaytracedAO/Renderer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Renderer::Renderer(IVideoDriver* _driver, IAssetManager* _assetManager, scene::I
7878
break;
7979
}
8080

81-
<<<<<<< HEAD
8281
// set up raycount buffers
8382
{
8483
const uint32_t zeros[RAYCOUNT_N_BUFFERING] = { 0u };
@@ -268,7 +267,10 @@ Renderer::InitializationData Renderer::initSceneObjects(const SAssetBundle& mesh
268267
constexpr auto combinedNormalUVAttributeIx = 1;
269268
constexpr auto newEnabledAttributeMask = (0x1u<<combinedNormalUVAttributeIx)|0b1;
270269

271-
auto cpump = core::make_smart_refctd_ptr<CCPUMeshPackerV2<>>(allocParams,minTrisBatch,maxTrisBatch);
270+
IMeshPackerV2Base::SupportedFormatsContainer formats;
271+
formats.insert(EF_R32G32B32_SFLOAT);
272+
formats.insert(EF_R32G32_UINT);
273+
auto cpump = core::make_smart_refctd_ptr<CCPUMeshPackerV2<>>(allocParams,formats,minTrisBatch,maxTrisBatch);
272274
uint32_t mdiBoundMax=0u,batchInstanceBoundTotal=0u;
273275
core::vector<CPUMeshPacker::ReservedAllocationMeshBuffers> allocData;
274276
// virtually allocate and size the storage
@@ -359,7 +361,7 @@ Renderer::InitializationData Renderer::initSceneObjects(const SAssetBundle& mesh
359361
const auto& instanceAuxData = meta->m_instanceAuxData;
360362

361363
auto meshBuffers = cpumesh->getMeshBuffers();
362-
const uint32_t actualMdiCnt = cpump->commit(&*pmbdIt,cdot.data(),&*allocDataIt,meshBuffers.begin(),meshBuffers.end());
364+
const uint32_t actualMdiCnt = cpump->commit(&*pmbdIt,cdot.data(),nullptr,&*allocDataIt,meshBuffers.begin(),meshBuffers.end());
363365
allocDataIt += meshBuffers.size();
364366
if (actualMdiCnt==0u)
365367
{
@@ -1161,8 +1163,6 @@ void Renderer::deinit()
11611163
// one day it will just work like that
11621164
//#include <nbl/builtin/glsl/sampling/box_muller_transform.glsl>
11631165

1164-
constexpr uint16_t m_maxDepth = 2u; // TODO: = 5u
1165-
constexpr uint16_t m_UNUSED_russianRouletteDepth = 5u;
11661166
void Renderer::render(nbl::ITimer* timer)
11671167
{
11681168
if (m_cullPushConstants.maxGlobalInstanceCount==0u)

examples_tests/22.RaytracedAO/Renderer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class Renderer : public nbl::core::IReferenceCounted, public nbl::core::Interfac
7676

7777
inline InitializationData& operator=(InitializationData&& other)
7878
{
79-
mdiFirstIndices = std::move(other.mdiFirstIndices);
8079
lights = std::move(other.lights);
8180
lightCDF = std::move(other.lightCDF);
8281
globalMeta = other.globalMeta;

0 commit comments

Comments
 (0)