Vulkan: Silence Compilation Warnings

This PR silences some compilation warnings in the command buffer.

Pull Request: https://projects.blender.org/blender/blender/pulls/107541
This commit is contained in:
Jeroen Bakker
2023-05-02 15:52:53 +02:00
parent 5e3bf37982
commit 13fe6d0170
2 changed files with 2 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ void VKCommandBuffer::begin_render_pass(const VKFrameBuffer &framebuffer)
void VKCommandBuffer::end_render_pass(const VKFrameBuffer &framebuffer)
{
UNUSED_VARS_NDEBUG(framebuffer)
UNUSED_VARS_NDEBUG(framebuffer);
validate_framebuffer_exists();
BLI_assert(state.framebuffer_ == &framebuffer);
ensure_no_active_framebuffer();

View File

@@ -118,6 +118,7 @@ class VKCommandBuffer : NonCopyable, NonMovable {
void stage_transfer(Stage stage_from, Stage stage_to)
{
BLI_assert(is_in_stage(stage_from));
UNUSED_VARS_NDEBUG(stage_from);
#if 0
printf(" *** Transfer stage from %s to %s\n",
to_string(stage_from).c_str(),