From 3157121fe43864830381cb957b1919db0756a036 Mon Sep 17 00:00:00 2001
From: Tobias Frisch <tfrisch@uni-koblenz.de>
Date: Mon, 5 Sep 2022 15:25:05 +0200
Subject: [PATCH] Removed some warnings

Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de>
---
 projects/voxelization/src/Voxelization.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/projects/voxelization/src/Voxelization.cpp b/projects/voxelization/src/Voxelization.cpp
index f7401124..5c70b9dd 100644
--- a/projects/voxelization/src/Voxelization.cpp
+++ b/projects/voxelization/src/Voxelization.cpp
@@ -161,7 +161,7 @@ Voxelization::Voxelization(
 		voxelIndexData.push_back(static_cast<uint16_t>(i));
 	}
 
-	const vkcv::DescriptorSetUsage voxelizationDescriptorUsage(0, m_visualisationDescriptorSet);
+	const auto voxelizationDescriptorUsage = vkcv::useDescriptorSet(0, m_visualisationDescriptorSet);
 
 	vkcv::ShaderProgram resetVoxelShader = loadVoxelResetShader();
 
@@ -249,7 +249,7 @@ void Voxelization::voxelizeMeshes(
 		cmdStream,
 		m_voxelResetPipe,
 		vkcv::dispatchInvocations(voxelCount, resetVoxelGroupSize),
-		{ vkcv::DescriptorSetUsage(0, m_voxelResetDescriptorSet) },
+		{ vkcv::useDescriptorSet(0, m_voxelResetDescriptorSet) },
 		voxelCountPushConstants
 	);
 	m_corePtr->recordBufferMemoryBarrier(cmdStream, m_voxelBuffer.getHandle());
@@ -287,7 +287,7 @@ void Voxelization::voxelizeMeshes(
 		cmdStream,
 		m_bufferToImagePipe,
 		bufferToImageDispatchCount,
-		{ vkcv::DescriptorSetUsage(0, m_bufferToImageDescriptorSet) },
+		{ vkcv::useDescriptorSet(0, m_bufferToImageDescriptorSet) },
 		vkcv::PushConstants(0)
 	);
 
@@ -306,7 +306,7 @@ void Voxelization::voxelizeMeshes(
 		cmdStream,
 		m_secondaryBouncePipe,
 		bufferToImageDispatchCount,
-		{ vkcv::DescriptorSetUsage(0, m_secondaryBounceDescriptorSet) },
+		{ vkcv::useDescriptorSet(0, m_secondaryBounceDescriptorSet) },
 		vkcv::PushConstants(0));
 	m_voxelImage.recordMipChainGeneration(cmdStream, downsampler);
 	m_corePtr->recordEndDebugLabel(cmdStream);
-- 
GitLab