GPU/Vulkan: Fix warnings introduced by #2438

This commit is contained in:
Connor McLaughlin
2021-08-07 12:01:02 +10:00
parent 653453b1ee
commit 8bea6e1530
3 changed files with 11 additions and 10 deletions

View File

@ -525,8 +525,9 @@ DebugScope<VkCommandBuffer>::DebugScope(VkCommandBuffer context, const char* for
++depth;
const float depth_phase = depth / static_cast<float>(max_depth);
BeginDebugScope(command_buffer, str,
Palette(depth_phase, {0.5, 0.5, 0.5}, {0.5, 0.5, 0.5}, {1.0, 1.0, 0.5}, {0.8, 0.90, 0.30}));
BeginDebugScope(
command_buffer, str,
Palette(depth_phase, {0.5f, 0.5f, 0.5f}, {0.5f, 0.5f, 0.5f}, {1.0f, 1.0f, 0.5f}, {0.8f, 0.90f, 0.30f}));
}
}
@ -552,7 +553,7 @@ DebugScope<VkQueue>::DebugScope(VkQueue context, const char* format, ...) : queu
const float depth_phase = depth / static_cast<float>(max_depth);
BeginDebugScope(queue, str,
Palette(depth_phase, {0.5, 0.5, 0.5}, {0.5, 0.5, 0.5}, {2.0, 1.0, 0.0}, {0.5, 0.20, 0.25}));
Palette(depth_phase, {0.5f, 0.5f, 0.5f}, {0.5f, 0.5f, 0.5f}, {2.0f, 1.0f, 0.0f}, {0.5f, 0.20f, 0.25f}));
++depth;
}
}