Skip to content
Snippets Groups Projects

Resolve "Shader Program Class"

Merged Mark Oliver Mints requested to merge 10-shader-program-class into develop
4 files
+ 9
27
Compare changes
  • Side-by-side
  • Inline
Files
4
  • 5d385670
    [#16] adjust code according to MR · 5d385670
    Sebastian Gaida authored
    removed some temp debug code and removed context out of swapchain
@@ -4,24 +4,17 @@
#include "vkcv/Window.hpp"
#include <iostream>
// glfw is not initialized in this class because ist must be sure that there exists a context first
// glfw is already initialized by the context or the window class
namespace vkcv {
class SwapChain final {
private:
vk::SurfaceKHR m_surface;
const vkcv::Context& m_context;
vk::SwapchainKHR m_swapchain;
vk::SurfaceFormatKHR m_format;
SwapChain(vk::SurfaceKHR surface, const vkcv::Context &context, vk::SwapchainKHR swapchain, vk::SurfaceFormatKHR format);
SwapChain(vk::SurfaceKHR surface, vk::SwapchainKHR swapchain, vk::SurfaceFormatKHR format);
public:
// bin mir grade unsicher wegen der Mehrfachinstanziierung der Klasse
// es muessen ja oefter mal neue erstellt werden, aber diese existieren ja nicht gleichzeitig, oder?
SwapChain(const SwapChain &other) = default;
SwapChain(SwapChain &&other) = default;
Loading