Skip to content
Snippets Groups Projects
Verified Commit 3157121f authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Removed some warnings

parent 20b5b116
No related branches found
No related tags found
1 merge request!105Resolve "Refactor Core API"
...@@ -161,7 +161,7 @@ Voxelization::Voxelization( ...@@ -161,7 +161,7 @@ Voxelization::Voxelization(
voxelIndexData.push_back(static_cast<uint16_t>(i)); 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(); vkcv::ShaderProgram resetVoxelShader = loadVoxelResetShader();
...@@ -249,7 +249,7 @@ void Voxelization::voxelizeMeshes( ...@@ -249,7 +249,7 @@ void Voxelization::voxelizeMeshes(
cmdStream, cmdStream,
m_voxelResetPipe, m_voxelResetPipe,
vkcv::dispatchInvocations(voxelCount, resetVoxelGroupSize), vkcv::dispatchInvocations(voxelCount, resetVoxelGroupSize),
{ vkcv::DescriptorSetUsage(0, m_voxelResetDescriptorSet) }, { vkcv::useDescriptorSet(0, m_voxelResetDescriptorSet) },
voxelCountPushConstants voxelCountPushConstants
); );
m_corePtr->recordBufferMemoryBarrier(cmdStream, m_voxelBuffer.getHandle()); m_corePtr->recordBufferMemoryBarrier(cmdStream, m_voxelBuffer.getHandle());
...@@ -287,7 +287,7 @@ void Voxelization::voxelizeMeshes( ...@@ -287,7 +287,7 @@ void Voxelization::voxelizeMeshes(
cmdStream, cmdStream,
m_bufferToImagePipe, m_bufferToImagePipe,
bufferToImageDispatchCount, bufferToImageDispatchCount,
{ vkcv::DescriptorSetUsage(0, m_bufferToImageDescriptorSet) }, { vkcv::useDescriptorSet(0, m_bufferToImageDescriptorSet) },
vkcv::PushConstants(0) vkcv::PushConstants(0)
); );
...@@ -306,7 +306,7 @@ void Voxelization::voxelizeMeshes( ...@@ -306,7 +306,7 @@ void Voxelization::voxelizeMeshes(
cmdStream, cmdStream,
m_secondaryBouncePipe, m_secondaryBouncePipe,
bufferToImageDispatchCount, bufferToImageDispatchCount,
{ vkcv::DescriptorSetUsage(0, m_secondaryBounceDescriptorSet) }, { vkcv::useDescriptorSet(0, m_secondaryBounceDescriptorSet) },
vkcv::PushConstants(0)); vkcv::PushConstants(0));
m_voxelImage.recordMipChainGeneration(cmdStream, downsampler); m_voxelImage.recordMipChainGeneration(cmdStream, downsampler);
m_corePtr->recordEndDebugLabel(cmdStream); m_corePtr->recordEndDebugLabel(cmdStream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment