From fd7f42449557771ab0b6a679853c245681801ba3 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 9 Oct 2023 22:55:42 -0400 Subject: moved texture pipelines handling to window.cpp - messy --- src/window.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/window.hpp') diff --git a/src/window.hpp b/src/window.hpp index 91a3a30..0ab3910 100644 --- a/src/window.hpp +++ b/src/window.hpp @@ -54,6 +54,20 @@ struct UniformBufferObject { extern UniformBufferObject UBO; extern VkBuffer UniformBuffers[MAX_FRAMES_IN_FLIGHT]; +struct ImplementedPipelines { + VkDescriptorSetLayout vkDescriptorSetLayout_Texture = VK_NULL_HANDLE; + VkPipelineLayout vkPipelineLayout_Texture = VK_NULL_HANDLE; + VkSampler vkSampler_Texture = VK_NULL_HANDLE; + union { + VkPipeline arr[2] = { VK_NULL_HANDLE, VK_NULL_HANDLE }; + struct { + VkPipeline Texture; + VkPipeline TextureWireframe; + }; + } pipelines; +}; +extern ImplementedPipelines pkePipelines; + void CreateWindow(PKEWindowProperties *wp); void DestroyWindow(); VkShaderModule UploadShader(AssetHandle handle); -- cgit v1.2.3