suppress some warnings
This commit is contained in:
@@ -23,7 +23,7 @@ namespace OpenVulkano::Vulkan
|
||||
void AddQueueFamily(const uint32_t queueFamilyIndex, const std::vector<float>& priorities)
|
||||
{
|
||||
prioritiesVector.push_back(priorities);
|
||||
createInfos.emplace_back(vk::DeviceQueueCreateFlags(), queueFamilyIndex, priorities.size(), prioritiesVector[prioritiesVector.size()-1].data());
|
||||
createInfos.emplace_back(vk::DeviceQueueCreateFlags(), queueFamilyIndex, static_cast<uint32_t>(priorities.size()), prioritiesVector[prioritiesVector.size()-1].data());
|
||||
}
|
||||
|
||||
void AddQueueFamily(uint32_t queueFamilyIndex, uint32_t count = 1)
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace OpenVulkano::Vulkan
|
||||
|
||||
std::vector<vk::SubpassDescription> subPasses;
|
||||
subPasses.emplace_back(vk::SubpassDescriptionFlags(), vk::PipelineBindPoint::eGraphics, 0, nullptr,
|
||||
colorAttachmentReferences.size(), colorAttachmentReferences.data(), nullptr, depthReference, 0, nullptr);
|
||||
static_cast<uint32_t>(colorAttachmentReferences.size()), colorAttachmentReferences.data(), nullptr, depthReference, 0, nullptr);
|
||||
std::vector<vk::SubpassDependency> subPassDependencies;
|
||||
subPassDependencies.emplace_back(0, VK_SUBPASS_EXTERNAL, vk::PipelineStageFlagBits::eColorAttachmentOutput,
|
||||
vk::PipelineStageFlagBits::eBottomOfPipe, vk::AccessFlagBits::eColorAttachmentRead | vk::AccessFlagBits::eColorAttachmentWrite,
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace OpenVulkano::Vulkan
|
||||
throw std::runtime_error("The provided window is not compatible with Vulkan.");
|
||||
}
|
||||
context.Init(graphicsAppManager, vulkanWindow);
|
||||
for (int i = 0; i < context.swapChain.GetImageCount(); i++)
|
||||
for (uint32_t i = 0; i < context.swapChain.GetImageCount(); i++)
|
||||
{
|
||||
waitSemaphores.emplace_back();
|
||||
vk::Semaphore sema = context.device->device.createSemaphore({});
|
||||
|
||||
Reference in New Issue
Block a user