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

Removed include and fixed parameter type

parent f8ab4fd3
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
namespace vkcv {
PassHandle passFormats(Core &core, const std::vector<vk::Format> formats, bool clear = true,
PassHandle passFormats(Core &core, const std::vector<vk::Format> &formats, bool clear = true,
Multisampling multisampling = Multisampling::None);
PassHandle passFormat(Core &core, vk::Format format, bool clear = true,
......
#include <iostream>
#include <vkcv/Buffer.hpp>
#include <vkcv/Core.hpp>
#include <vkcv/Pass.hpp>
#include <GLFW/glfw3.h>
......
......@@ -3,7 +3,7 @@
namespace vkcv {
PassHandle passFormats(Core &core, const std::vector<vk::Format> formats, bool clear,
PassHandle passFormats(Core &core, const std::vector<vk::Format> &formats, bool clear,
Multisampling multisampling) {
AttachmentDescriptions attachments;
......@@ -22,9 +22,9 @@ namespace vkcv {
}
PassHandle passSwapchain(Core &core, const SwapchainHandle &swapchain,
const std::vector<vk::Format> formats, bool clear,
const std::vector<vk::Format> &formats, bool clear,
Multisampling multisampling) {
std::vector<vk::Format> swapchainFormats(formats);
std::vector<vk::Format> swapchainFormats (formats);
for (auto &format : swapchainFormats) {
if (vk::Format::eUndefined == format) {
......
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