From de9159ce51242167b52f2d994219848d98387fb3 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 18 Nov 2017 15:31:05 -1000 Subject: [PATCH] Vulkan API fixes --- lib/graphicsdev/Vulkan.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/graphicsdev/Vulkan.cpp b/lib/graphicsdev/Vulkan.cpp index 144a6e3..9373ea8 100644 --- a/lib/graphicsdev/Vulkan.cpp +++ b/lib/graphicsdev/Vulkan.cpp @@ -1350,6 +1350,7 @@ class VulkanTextureD : public GraphicsDataNode size_t m_height; TextureFormat m_fmt; VulkanCommandQueue* m_q; + VulkanContext* m_ctx; std::unique_ptr m_stagingBuf; size_t m_cpuSz; VkDeviceSize m_srcRowPitch; @@ -1358,7 +1359,7 @@ class VulkanTextureD : public GraphicsDataNode int m_validSlots = 0; VulkanTextureD(const boo::ObjToken& parent, VulkanCommandQueue* q, VulkanContext* ctx, size_t width, size_t height, TextureFormat fmt, TextureClampMode clampMode) - : GraphicsDataNode(parent), m_width(width), m_height(height), m_fmt(fmt), m_q(q) + : GraphicsDataNode(parent), m_width(width), m_height(height), m_fmt(fmt), m_q(q), m_ctx(ctx) { VkFormat pfmt; switch (fmt) @@ -1702,11 +1703,12 @@ class VulkanTextureR : public GraphicsDataNode m_passBeginInfo.pClearValues = nullptr; } + VulkanContext* m_ctx; VulkanCommandQueue* m_q; VulkanTextureR(const boo::ObjToken& parent, VulkanContext* ctx, VulkanCommandQueue* q, size_t width, size_t height, size_t samples, TextureClampMode clampMode, size_t colorBindCount, size_t depthBindCount) - : GraphicsDataNode(parent), m_q(q), + : GraphicsDataNode(parent), m_ctx(ctx), m_q(q), m_width(width), m_height(height), m_samples(samples), m_clampMode(clampMode), m_colorBindCount(colorBindCount),