]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/commands_backend.h
Store simpler states by value in PipelineState
[libs/gl.git] / source / backends / vulkan / commands_backend.h
index 5fcae882a26a7c053ff72595c35521d32735d1bc..00e492f2542c2fa9fada9c0929480503cb842f25 100644 (file)
@@ -4,6 +4,7 @@
 #include <vector>
 #include "fence.h"
 #include "handles.h"
+#include "rect.h"
 
 namespace Msp {
 namespace GL {
@@ -14,7 +15,6 @@ class Device;
 class Framebuffer;
 class PipelineState;
 class QueryPool;
-struct Rect;
 class Semaphore;
 class SwapChain;
 
@@ -48,7 +48,7 @@ protected:
        VkCommandBuffer pass_buffer = 0;
        const PipelineState *pipeline_state = 0;
        const Framebuffer *framebuffer = 0;
-       const Rect *viewport = 0;
+       Rect viewport = Rect::max();
        bool fb_is_swapchain = false;
        bool discard_fb_contents = false;
        std::vector<char> pass_begin_info;