Skip to content

Commit c4f7993

Browse files
committed
Removing GPU from IUtilities.h names
1 parent 9484a4e commit c4f7993

File tree

23 files changed

+72
-72
lines changed

23 files changed

+72
-72
lines changed

examples_tests/0.ImportanceSamplingEnvMaps/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class ImportanceSamplingEnvMaps : public ApplicationBase
187187
core::smart_refctd_ptr<IGPUImageView> getLUTGPUImageViewFromBuffer(core::smart_refctd_ptr<ICPUBuffer> buffer, IImage::E_TYPE imageType, asset::E_FORMAT format, const asset::VkExtent3D& extent,
188188
IGPUImageView::E_TYPE imageViewType)
189189
{
190-
auto gpuBuffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], buffer->getSize(), buffer->getPointer());
190+
auto gpuBuffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], buffer->getSize(), buffer->getPointer());
191191

192192
IGPUImage::SCreationParams params;
193193
params.flags = static_cast<asset::IImage::E_CREATE_FLAGS>(0u);
@@ -203,7 +203,7 @@ class ImportanceSamplingEnvMaps : public ApplicationBase
203203
region.imageSubresource.layerCount = 1u;
204204
region.imageExtent = params.extent;
205205

206-
auto gpuImage = utilities->createFilledDeviceLocalGPUImageOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], std::move(params), gpuBuffer.get(), 1u, &region);
206+
auto gpuImage = utilities->createFilledDeviceLocalImageOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], std::move(params), gpuBuffer.get(), 1u, &region);
207207

208208
IGPUImageView::SCreationParams viewParams;
209209
viewParams.flags = static_cast<IGPUImageView::E_CREATE_FLAGS>(0u);
@@ -567,7 +567,7 @@ class ImportanceSamplingEnvMaps : public ApplicationBase
567567
}
568568
}
569569

570-
auto gpuSequenceBuffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sampleSequence->getSize(), sampleSequence->getPointer());
570+
auto gpuSequenceBuffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sampleSequence->getSize(), sampleSequence->getPointer());
571571
auto gpuSequenceBuffer = cpu2gpu.getGPUObjectsFromAssets(&sampleSequence, &sampleSequence + 1u, cpu2gpuParams)->front()->getBuffer();
572572
gpuSequenceBufferView = logicalDevice->createBufferView(gpuSequenceBuffer.get(), asset::EF_R32G32B32_UINT);
573573
}
@@ -596,12 +596,12 @@ class ImportanceSamplingEnvMaps : public ApplicationBase
596596
pixel = rng.nextSample();
597597
}
598598
cpu2gpuParams.beginCommandBuffers();
599-
auto buffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], random.size() * sizeof(uint32_t), random.data());
599+
auto buffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], random.size() * sizeof(uint32_t), random.data());
600600
cpu2gpuParams.waitForCreationToComplete();
601601

602602
IGPUImageView::SCreationParams viewParams;
603603
viewParams.flags = static_cast<IGPUImageView::E_CREATE_FLAGS>(0u);
604-
viewParams.image = utilities->createFilledDeviceLocalGPUImageOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], std::move(imgParams), buffer.get(), 1u, &region);
604+
viewParams.image = utilities->createFilledDeviceLocalImageOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], std::move(imgParams), buffer.get(), 1u, &region);
605605
viewParams.viewType = IGPUImageView::ET_2D;
606606
viewParams.format = EF_R32G32_UINT;
607607
viewParams.subresourceRange.levelCount = 1u;

examples_tests/11.LoDSystem/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ class LoDSystemApp : public ApplicationBase
692692
cullingParams.indirectDispatchParams,
693693
cullingParams.instanceList,
694694
cullingParams.scratchBufferRanges,
695-
{ 0ull,~0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,cullingParams.drawcallCount * sizeof(uint32_t),drawCallOffsetsInDWORDs.data()) },
696-
{ 0ull,~0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,lodLibraryData.drawCountOffsets.size() * sizeof(uint32_t),lodLibraryData.drawCountOffsets.data()) }
695+
{ 0ull,~0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,cullingParams.drawcallCount * sizeof(uint32_t),drawCallOffsetsInDWORDs.data()) },
696+
{ 0ull,~0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,lodLibraryData.drawCountOffsets.size() * sizeof(uint32_t),lodLibraryData.drawCountOffsets.data()) }
697697
);
698698
}
699699
}

examples_tests/12.glTF/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class GLTFApp : public ApplicationBase
352352
allNodes.insert(allNodes.begin(),allNodes.size());
353353
pivotNodesRange.offset += sizeof(uint32_t);
354354

355-
auto allNodesBuffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(scene::ITransformTree::node_t)*allNodes.size(),allNodes.data());
355+
auto allNodesBuffer = utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(scene::ITransformTree::node_t)*allNodes.size(),allNodes.data());
356356
transformTreeManager->updateRecomputeGlobalTransformsDescriptorSet(logicalDevice.get(),ttmDescriptorSets.recomputeGlobal.get(),{0ull,allNodesBuffer});
357357
pivotNodesRange.buffer = std::move(allNodesBuffer);
358358
}
@@ -448,7 +448,7 @@ class GLTFApp : public ApplicationBase
448448
}
449449
// transfer compressed aabbs to the GPU
450450
{
451-
aabbBinding = {0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(CompressedAABB)*aabbPool.size(),aabbPool.data())};
451+
aabbBinding = {0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(CompressedAABB)*aabbPool.size(),aabbPool.data())};
452452
transformTreeManager->updateDebugDrawDescriptorSet(logicalDevice.get(),ttmDescriptorSets.debugDraw.get(),SBufferBinding(aabbBinding));
453453

454454
IGPUBuffer::SCreationParams params = {};
@@ -577,8 +577,8 @@ class GLTFApp : public ApplicationBase
577577
std::inclusive_scan(jointCountInclusivePrefixSum.begin(),jointCountInclusivePrefixSum.end(),jointCountInclusivePrefixSum.begin());
578578
sicManager->updateCacheUpdateDescriptorSet(
579579
logicalDevice.get(),sicDescriptorSets.cacheUpdate.get(),
580-
{0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(scene::ISkinInstanceCache::skin_instance_t)*skinsToUpdate.size(),skinsToUpdate.data())},
581-
{0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(uint32_t)*jointCountInclusivePrefixSum.size(),jointCountInclusivePrefixSum.data())}
580+
{0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(scene::ISkinInstanceCache::skin_instance_t)*skinsToUpdate.size(),skinsToUpdate.data())},
581+
{0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(uint32_t)*jointCountInclusivePrefixSum.size(),jointCountInclusivePrefixSum.data())}
582582
);
583583
}
584584
// debug draw skin instances
@@ -626,8 +626,8 @@ class GLTFApp : public ApplicationBase
626626
sicManager->updateDebugDrawDescriptorSet(
627627
logicalDevice.get(),sicDescriptorSets.debugDraw.get(),
628628
transformTree.get(),SBufferBinding(aabbBinding),
629-
{0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(scene::ISkinInstanceCacheManager::DebugDrawData)*debugData.size(),debugData.data())},
630-
{0ull,utilities->createFilledDeviceLocalGPUBufferOnDedMem(transferUpQueue,sizeof(uint32_t)*jointCountInclPrefixSum.size(),jointCountInclPrefixSum.data())}
629+
{0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(scene::ISkinInstanceCacheManager::DebugDrawData)*debugData.size(),debugData.data())},
630+
{0ull,utilities->createFilledDeviceLocalBufferOnDedMem(transferUpQueue,sizeof(uint32_t)*jointCountInclPrefixSum.size(),jointCountInclPrefixSum.data())}
631631
);
632632
}
633633
}

examples_tests/14.ComputeScan/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ComputeScanApp : public NonGraphicalApplicationBase
6262
SBufferRange<IGPUBuffer> in_gpu_range;
6363
in_gpu_range.offset = begin * sizeof(uint32_t);
6464
in_gpu_range.size = elementCount * sizeof(uint32_t);
65-
in_gpu_range.buffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[decltype(initOutput)::EQT_TRANSFER_UP], in_count * sizeof(uint32_t), in);
65+
in_gpu_range.buffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[decltype(initOutput)::EQT_TRANSFER_UP], in_count * sizeof(uint32_t), in);
6666

6767
const auto scanType = video::CScanner::EST_EXCLUSIVE;
6868
auto scanner = utilities->getDefaultScanner();
@@ -264,7 +264,7 @@ NBL_COMMON_API_MAIN(ComputeScanApp)
264264
// SBufferRange<IGPUBuffer> in_gpu_range;
265265
// in_gpu_range.offset = begin*sizeof(uint32_t);
266266
// in_gpu_range.size = elementCount*sizeof(uint32_t);
267-
// in_gpu_range.buffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[decltype(initOutput)::EQT_TRANSFER_UP],in_count*sizeof(uint32_t),in);
267+
// in_gpu_range.buffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[decltype(initOutput)::EQT_TRANSFER_UP],in_count*sizeof(uint32_t),in);
268268
//
269269
// const auto scanType = video::CScanner::EST_EXCLUSIVE;
270270
// auto scanner = utilities->getDefaultScanner();

examples_tests/20.Megatexture/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ APP_CONSTRUCTOR(MegaTextureApp)
664664
gpuds2 = logicalDevice->createDescriptorSet(descriptorPoolDs2.get(), std::move(gpu_ds2layout));
665665
{
666666
core::smart_refctd_ptr<video::IUtilities> utilities = core::make_smart_refctd_ptr<video::IUtilities>(core::smart_refctd_ptr(logicalDevice));
667-
core::smart_refctd_ptr<video::IGPUBuffer> buffer = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sizeof(video::IGPUVirtualTexture::SPrecomputedData), &gpuvt->getPrecomputedData());
667+
core::smart_refctd_ptr<video::IGPUBuffer> buffer = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sizeof(video::IGPUVirtualTexture::SPrecomputedData), &gpuvt->getPrecomputedData());
668668

669669
{
670670
std::array<video::IGPUDescriptorSet::SWriteDescriptorSet, 1> write;

examples_tests/21.DynamicTextureIndexing/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,14 @@ class DynamicTextureIndexingApp : public ApplicationBase
351351
assert(pmbData.mdiParameterCount == meshBuffersInRangeCnt);
352352

353353
//create draw call inputs
354-
mdiCallParams[i].indexBuff = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], packedMeshBuffer[i].indexBuffer.buffer->getSize(), packedMeshBuffer[i].indexBuffer.buffer->getPointer());
354+
mdiCallParams[i].indexBuff = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], packedMeshBuffer[i].indexBuffer.buffer->getSize(), packedMeshBuffer[i].indexBuffer.buffer->getPointer());
355355

356356
auto& cpuVtxBuff = packedMeshBuffer[i].vertexBufferBindings[0].buffer;
357357

358-
gpuIndirectDrawBuffer[i] = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sizeof(CustomIndirectCommand) * pmbData.mdiParameterCount, packedMeshBuffer[i].MDIDataBuffer->getPointer());
358+
gpuIndirectDrawBuffer[i] = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], sizeof(CustomIndirectCommand) * pmbData.mdiParameterCount, packedMeshBuffer[i].MDIDataBuffer->getPointer());
359359
mdiCallParams[i].indirectDrawBuff = core::smart_refctd_ptr(gpuIndirectDrawBuffer[i]);
360360

361-
auto gpuVtxBuff = utilities->createFilledDeviceLocalGPUBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], cpuVtxBuff->getSize(), cpuVtxBuff->getPointer());
361+
auto gpuVtxBuff = utilities->createFilledDeviceLocalBufferOnDedMem(queues[CommonAPI::InitOutput::EQT_TRANSFER_UP], cpuVtxBuff->getSize(), cpuVtxBuff->getPointer());
362362

363363
for (uint32_t j = 0u; j < video::IGPUMeshBuffer::MAX_ATTR_BUF_BINDING_COUNT; j++)
364364
{

examples_tests/22.RaytracedAO/Renderer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Renderer::Renderer(IVideoDriver* _driver, IAssetManager* _assetManager, scene::I
6161
// set up raycount buffers
6262
{
6363
const uint32_t zeros[RAYCOUNT_N_BUFFERING] = { 0u };
64-
m_rayCountBuffer = m_driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(uint32_t)*RAYCOUNT_N_BUFFERING,zeros);
64+
m_rayCountBuffer = m_driver->createFilledDeviceLocalBufferOnDedMem(sizeof(uint32_t)*RAYCOUNT_N_BUFFERING,zeros);
6565
IDeviceMemoryBacked::SDeviceMemoryRequirements reqs;
6666
reqs.vulkanReqs.size = sizeof(uint32_t);
6767
reqs.vulkanReqs.alignment = alignof(uint32_t);
@@ -575,7 +575,7 @@ Renderer::InitializationData Renderer::initSceneObjects(const SAssetBundle& mesh
575575
{
576576
recordInfoBuffer(infos[3],core::smart_refctd_ptr(m_indirectDrawBuffers[1]));
577577
recordInfoBuffer(infos[2],core::smart_refctd_ptr(m_indirectDrawBuffers[0]));
578-
recordInfoBuffer(infos[1],m_driver->createFilledDeviceLocalGPUBufferOnDedMem(m_cullPushConstants.maxGlobalInstanceCount*sizeof(CullData_t),cullData.data()));
578+
recordInfoBuffer(infos[1],m_driver->createFilledDeviceLocalBufferOnDedMem(m_cullPushConstants.maxGlobalInstanceCount*sizeof(CullData_t),cullData.data()));
579579
cullData.clear();
580580
recordInfoBuffer(infos[0],m_driver->createDeviceLocalGPUBufferOnDedMem(m_cullPushConstants.maxGlobalInstanceCount*sizeof(DrawData_t)));
581581

@@ -863,7 +863,7 @@ core::smart_refctd_ptr<asset::ICPUBuffer> Renderer::SampleSequence::createCPUBuf
863863
}
864864
void Renderer::SampleSequence::createBufferView(IVideoDriver* driver, core::smart_refctd_ptr<asset::ICPUBuffer>&& buff)
865865
{
866-
auto gpubuf = driver->createFilledDeviceLocalGPUBufferOnDedMem(buff->getSize(),buff->getPointer());
866+
auto gpubuf = driver->createFilledDeviceLocalBufferOnDedMem(buff->getSize(),buff->getPointer());
867867
bufferView = driver->createBufferView(gpubuf.get(),asset::EF_R32G32_UINT);
868868
}
869869
core::smart_refctd_ptr<ICPUBuffer> Renderer::SampleSequence::createBufferView(IVideoDriver* driver, uint32_t quantizedDimensions, uint32_t sampleCount)
@@ -969,7 +969,7 @@ void Renderer::initSceneResources(SAssetBundle& meshes, nbl::io::path&& _sampleS
969969
};
970970
auto createFilledBufferAndSetUpInfo = [&](IGPUDescriptorSet::SDescriptorInfo* info, size_t size, const void* data)
971971
{
972-
auto buf = m_driver->createFilledDeviceLocalGPUBufferOnDedMem(size,data);
972+
auto buf = m_driver->createFilledDeviceLocalBufferOnDedMem(size,data);
973973
setBufferInfo(info,core::smart_refctd_ptr(buf));
974974
return buf;
975975
};
@@ -1209,7 +1209,7 @@ void Renderer::initScreenSizedResources(uint32_t width, uint32_t height)
12091209

12101210
auto createFilledBufferAndSetUpInfo = [&](IGPUDescriptorSet::SDescriptorInfo* info, size_t size, const void* data)
12111211
{
1212-
auto buf = m_driver->createFilledDeviceLocalGPUBufferOnDedMem(size,data);
1212+
auto buf = m_driver->createFilledDeviceLocalBufferOnDedMem(size,data);
12131213
setBufferInfo(info,core::smart_refctd_ptr(buf));
12141214
return buf;
12151215
};

examples_tests/23.Autoexposure/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int main()
9494
LumaMeterClass::Uniforms_t<MeterMode> uniforms;
9595
auto lumaDispatchInfo = LumaMeterClass::buildParameters(uniforms, outImg->getCreationParameters().extent, meteringMinUV, meteringMaxUV);
9696

97-
auto uniformBuffer = driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(uniforms),&uniforms);
97+
auto uniformBuffer = driver->createFilledDeviceLocalBufferOnDedMem(sizeof(uniforms),&uniforms);
9898

9999

100100
using ToneMapperClass = ext::ToneMapper::CToneMapper;

examples_tests/36.CUDAInterop/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ int main()
150150
{
151151
constexpr auto resourceCount = 3u;
152152
cuda::CCUDAHandler::GraphicsAPIObjLink<video::IGPUBuffer> resources[resourceCount];
153-
auto& A = resources[0] = driver->createFilledDeviceLocalGPUBufferOnDedMem(_size,cpubuffers[0]->getPointer());
154-
auto& B = resources[1] = driver->createFilledDeviceLocalGPUBufferOnDedMem(_size,cpubuffers[1]->getPointer());
153+
auto& A = resources[0] = driver->createFilledDeviceLocalBufferOnDedMem(_size,cpubuffers[0]->getPointer());
154+
auto& B = resources[1] = driver->createFilledDeviceLocalBufferOnDedMem(_size,cpubuffers[1]->getPointer());
155155
auto& C = resources[2] = driver->createDeviceLocalGPUBufferOnDedMem(_size);
156156
if (!cuda::CCUDAHandler::defaultHandleResult(cuda::CCUDAHandler::registerBuffer(&A,CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY)))
157157
return 11;

examples_tests/41.VisibilityBuffer/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ int main()
616616

617617
const uint32_t totalActualMdiCnt = mdiListOffset;
618618

619-
batchDataSSBO = driver->createFilledDeviceLocalGPUBufferOnDedMem(batchData.size()*sizeof(BatchInstanceData),batchData.data());
619+
batchDataSSBO = driver->createFilledDeviceLocalBufferOnDedMem(batchData.size()*sizeof(BatchInstanceData),batchData.data());
620620

621621
gpump = core::make_smart_refctd_ptr<CGPUMeshPackerV2<>>(driver,mp.get());
622622
sceneData.idxBuffer = gpump->getPackerDataStore().indexBuffer;
@@ -629,7 +629,7 @@ int main()
629629
cullShaderData.cubeDrawGUIDs = driver->createDeviceLocalGPUBufferOnDedMem(totalActualMdiCnt * sizeof(uint32_t));
630630

631631
cullShaderData.maxBatchCount = std::distance(batchCullData.begin(), batchCullDataEnd);
632-
cullShaderData.perBatchCull = driver->createFilledDeviceLocalGPUBufferOnDedMem(cullShaderData.maxBatchCount * sizeof(CullData_t), batchCullData.data());
632+
cullShaderData.perBatchCull = driver->createFilledDeviceLocalBufferOnDedMem(cullShaderData.maxBatchCount * sizeof(CullData_t), batchCullData.data());
633633
cullShaderData.mvpBuffer = driver->createDeviceLocalGPUBufferOnDedMem(cullShaderData.maxBatchCount * sizeof(core::matrix4SIMD));
634634
cullShaderData.visible = driver->createDeviceLocalGPUBufferOnDedMem(totalActualMdiCnt * sizeof(uint16_t));
635635
driver->fillBuffer(cullShaderData.visible.get(), 0u, cullShaderData.visible->getSize(), 0u);
@@ -646,13 +646,13 @@ int main()
646646
cubeIndirectDrawCommand.count = cubeIdxCnt;
647647
cubeIndirectDrawCommand.firstIndex = 0u;
648648
cubeIndirectDrawCommand.instanceCount = 0u;
649-
cullShaderData.cubeCommandBuffer = driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(DrawElementsIndirectCommand_t), &cubeIndirectDrawCommand);
649+
cullShaderData.cubeCommandBuffer = driver->createFilledDeviceLocalBufferOnDedMem(sizeof(DrawElementsIndirectCommand_t), &cubeIndirectDrawCommand);
650650

651651
DispatchIndirectCommand_t dispatchIndirect;
652652
dispatchIndirect.num_groups_x = 0u;
653653
dispatchIndirect.num_groups_y = 1u;
654654
dispatchIndirect.num_groups_z = 1u;
655-
cullShaderData.dispatchIndirect = driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(DispatchIndirectCommand_t), &dispatchIndirect);
655+
cullShaderData.dispatchIndirect = driver->createFilledDeviceLocalBufferOnDedMem(sizeof(DispatchIndirectCommand_t), &dispatchIndirect);
656656
}
657657

658658
//
@@ -793,7 +793,7 @@ int main()
793793
gpuvt->getDescriptorSetWrites(writesVT.data(),infoVT.data(),sceneData.vtDS.get(),_NBL_VT_PAGE_TABLE_BINDING,_NBL_VT_FLOAT_VIEWS_BINDING);
794794

795795
auto& precomp = gpuvt->getPrecomputedData();
796-
infoVT.back().desc = driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(precomp),&precomp);
796+
infoVT.back().desc = driver->createFilledDeviceLocalBufferOnDedMem(sizeof(precomp),&precomp);
797797
infoVT.back().buffer.offset = 0u;
798798
infoVT.back().buffer.size = sizeof(video::IGPUVirtualTexture::SPrecomputedData);
799799
writesVT.back().dstSet = sceneData.vtDS.get();
@@ -964,7 +964,7 @@ int main()
964964
};
965965

966966
cullShaderData.cubeIdxBuffer.offset = 0ull;
967-
cullShaderData.cubeIdxBuffer.buffer = driver->createFilledDeviceLocalGPUBufferOnDedMem(sizeof(indices), indices);
967+
cullShaderData.cubeIdxBuffer.buffer = driver->createFilledDeviceLocalBufferOnDedMem(sizeof(indices), indices);
968968

969969
SVertexInputParams vtxParams;
970970
vtxParams.enabledAttribFlags = 0b1111u;

0 commit comments

Comments
 (0)