mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed compilation warnings reported by Clang
src/rendering/vulkan/renderer/vk_renderpass.cpp:44:22: warning: comparison of integers of different signs: 'std::__1::vector<FVertexBufferAttribute, std::__1::allocator<FVertexBufferAttribute> >::size_type' (aka 'unsigned long') and 'int' [-Wsign-compare] src/rendering/vulkan/system/vk_framebuffer.cpp:860:55: warning: format specifies type 'int' but the argument has type 'VkDeviceSize' (aka 'unsigned long long') [-Wformat] src/rendering/vulkan/system/vk_objects.h:471:23: warning: suggest braces around initialization of subobject [-Wmissing-braces]
This commit is contained in:
parent
4724fdd389
commit
df8fa90a34
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ int VkRenderPassManager::GetVertexFormat(int numBindingPoints, int numAttributes
|
|||
for (size_t i = 0; i < VertexFormats.size(); i++)
|
||||
{
|
||||
const auto &f = VertexFormats[i];
|
||||
if (f.Attrs.size() == numAttributes && f.NumBindingPoints == numBindingPoints && f.Stride == stride)
|
||||
if (f.Attrs.size() == (size_t)numAttributes && f.NumBindingPoints == numBindingPoints && f.Stride == stride)
|
||||
{
|
||||
bool matches = true;
|
||||
for (int j = 0; j < numAttributes; j++)
|
||||
|
|
|
@ -857,7 +857,7 @@ void VulkanFrameBuffer::PrintStartupLog()
|
|||
const auto &limits = props.limits;
|
||||
Printf("Max. texture size: %d\n", limits.maxImageDimension2D);
|
||||
Printf("Max. uniform buffer range: %d\n", limits.maxUniformBufferRange);
|
||||
Printf("Min. uniform buffer offset alignment: %d\n", limits.minUniformBufferOffsetAlignment);
|
||||
Printf("Min. uniform buffer offset alignment: %llu\n", limits.minUniformBufferOffsetAlignment);
|
||||
}
|
||||
|
||||
void VulkanFrameBuffer::CreateFanToTrisIndexBuffer()
|
||||
|
|
|
@ -468,7 +468,7 @@ inline void RenderPassBegin::setFramebuffer(VulkanFramebuffer *framebuffer)
|
|||
inline void RenderPassBegin::addClearColor(float r, float g, float b, float a)
|
||||
{
|
||||
VkClearValue clearValue = { };
|
||||
clearValue.color = { r, g, b, a };
|
||||
clearValue.color = { {r, g, b, a} };
|
||||
clearValues.push_back(clearValue);
|
||||
|
||||
renderPassInfo.clearValueCount = (uint32_t)clearValues.size();
|
||||
|
|
Loading…
Reference in a new issue