Skip to content

Commit 7126e9d

Browse files
committed
Command buffer begin and reset function changed uint32_t to actual flags
1 parent 9210f4d commit 7126e9d

File tree

37 files changed

+60
-56
lines changed

37 files changed

+60
-56
lines changed

examples_tests/0.ImportanceSamplingEnvMaps/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ class ImportanceSamplingEnvMaps : public ApplicationBase
795795
fence = logicalDevice->createFence(static_cast<video::IGPUFence::E_CREATE_FLAGS>(0));
796796

797797
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
798-
commandBuffer->begin(0);
798+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
799799

800800
const auto nextPresentationTimestamp = oracle.acquireNextImage(swapchain.get(), imageAcquire[resourceIx].get(), nullptr, &acquiredNextFBO);
801801
{

examples_tests/01.HelloWorld/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ Choose Graphics API:
532532
else
533533
fence = device->createFence(static_cast<video::IGPUFence::E_CREATE_FLAGS>(0));
534534

535-
commandBuffer->begin(0u);
535+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
536536

537537
swapchain->acquireNextImage(MAX_TIMEOUT, m_imageAcquire[m_resourceIx].get(), nullptr, &m_acquiredNextFBO);
538538

examples_tests/02.ComputeShader/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class ComputeShaderSampleApp : public ApplicationBase
404404
swapchain->acquireNextImage(MAX_TIMEOUT, m_imageAcquire[m_resourceIx].get(), nullptr, &imgnum);
405405

406406
// safe to proceed
407-
cb->begin(0);
407+
cb->begin(IGPUCommandBuffer::EU_NONE);
408408

409409
{
410410
asset::SViewport vp;

examples_tests/03.GPU_Mesh/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class GPUMesh : public ApplicationBase
260260
const auto& mvp = camera.getConcatenatedMatrix();
261261

262262
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
263-
commandBuffer->begin(0);
263+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
264264

265265
asset::SViewport viewport;
266266
viewport.minDepth = 1.f;

examples_tests/05.NablaTutorialExample/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ class NablaTutorialExampleApp : public ApplicationBase
503503
const auto& viewProjectionMatrix = camera.getConcatenatedMatrix();
504504

505505
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
506-
commandBuffer->begin(0);
506+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
507507

508508
asset::SViewport viewport;
509509
viewport.minDepth = 1.f;

examples_tests/06.MeshLoaders/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class MeshLoadersApp : public ApplicationBase
420420
fence = logicalDevice->createFence(static_cast<video::IGPUFence::E_CREATE_FLAGS>(0));
421421

422422
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
423-
commandBuffer->begin(0);
423+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
424424

425425
const auto nextPresentationTimestamp = oracle.acquireNextImage(swapchain.get(), imageAcquire[resourceIx].get(), nullptr, &acquiredNextFBO);
426426
{

examples_tests/07.SubpassBaking/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class SubpassBaking : public ApplicationBase
411411
auto fence = logicalDevice->createFence(video::IGPUFence::ECF_UNSIGNALED);
412412
core::smart_refctd_ptr<video::IGPUCommandBuffer> tferCmdBuf;
413413
logicalDevice->createCommandBuffers(commandPools[decltype(initOutput)::EQT_TRANSFER_UP].get(), video::IGPUCommandBuffer::EL_PRIMARY, 1u, &tferCmdBuf);
414-
tferCmdBuf->begin(0u); // TODO some one time submit bit or something
414+
tferCmdBuf->begin(IGPUCommandBuffer::EU_NONE); // TODO some one time submit bit or something
415415
{
416416
auto* ppHandler = utilities->getDefaultPropertyPoolHandler();
417417
// if we did multiple transfers, we'd reuse the scratch
@@ -503,7 +503,7 @@ class SubpassBaking : public ApplicationBase
503503

504504
//
505505
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
506-
commandBuffer->begin(0);
506+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
507507

508508
// late latch input
509509
const auto nextPresentationTimestamp = oracle.acquireNextImage(swapchain.get(), imageAcquire[resourceIx].get(), nullptr, &acquiredNextFBO);

examples_tests/09.ColorSpaceTest/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class ColorSpaceTestSampleApp : public ApplicationBase
371371
// acquire image
372372
swapchain->acquireNextImage(MAX_TIMEOUT, imageAcquire[resourceIx].get(), nullptr, &imgnum);
373373

374-
cb->begin(0);
374+
cb->begin(IGPUCommandBuffer::EU_NONE);
375375

376376
asset::SViewport viewport;
377377
viewport.minDepth = 1.f;

examples_tests/11.LoDSystem/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ class LoDSystemApp : public ApplicationBase
649649
core::smart_refctd_ptr<video::IGPUCommandBuffer> tferCmdBuf;
650650
logicalDevice->createCommandBuffers(commandPools[CommonAPI::InitOutput::EQT_TRANSFER_UP].get(), video::IGPUCommandBuffer::EL_PRIMARY, 1u, &tferCmdBuf);
651651
auto fence = logicalDevice->createFence(video::IGPUFence::ECF_UNSIGNALED);
652-
tferCmdBuf->begin(0u); // TODO some one time submit bit or something
652+
tferCmdBuf->begin(IGPUCommandBuffer::EU_NONE); // TODO some one time submit bit or something
653653
{
654654
auto ppHandler = utilities->getDefaultPropertyPoolHandler();
655655
asset::SBufferBinding<video::IGPUBuffer> scratch;
@@ -763,7 +763,7 @@ class LoDSystemApp : public ApplicationBase
763763

764764
//
765765
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
766-
commandBuffer->begin(0);
766+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
767767

768768
// late latch input
769769
const auto nextPresentationTimestamp = oracle.acquireNextImage(swapchain.get(), imageAcquire[resourceIx].get(), nullptr, &acquiredNextFBO);

examples_tests/12.glTF/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class GLTFApp : public ApplicationBase
204204
{
205205
xferFence = logicalDevice->createFence(static_cast<nbl::video::IGPUFence::E_CREATE_FLAGS>(0));
206206
logicalDevice->createCommandBuffers(commandPools[CommonAPI::InitOutput::EQT_TRANSFER_UP].get(),nbl::video::IGPUCommandBuffer::EL_PRIMARY,1u,&xferCmdbuf);
207-
xferCmdbuf->begin(0);
207+
xferCmdbuf->begin(IGPUCommandBuffer::EU_NONE);
208208
}
209209
auto xferQueue = logicalDevice->getQueue(xferCmdbuf->getQueueFamilyIndex(),0u);
210210
asset::SBufferBinding<video::IGPUBuffer> xferScratch;
@@ -795,7 +795,7 @@ class GLTFApp : public ApplicationBase
795795
fence = logicalDevice->createFence(static_cast<video::IGPUFence::E_CREATE_FLAGS>(0));
796796

797797
commandBuffer->reset(nbl::video::IGPUCommandBuffer::ERF_RELEASE_RESOURCES_BIT);
798-
commandBuffer->begin(0);
798+
commandBuffer->begin(IGPUCommandBuffer::EU_NONE);
799799

800800
const auto nextPresentationTimestamp = oracle.acquireNextImage(swapchain.get(), imageAcquire[resourceIx].get(), nullptr, &acquiredNextFBO);
801801

0 commit comments

Comments
 (0)