summaryrefslogtreecommitdiff
path: root/src/window.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-10-09 22:55:42 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-10-09 22:55:42 -0400
commitfd7f42449557771ab0b6a679853c245681801ba3 (patch)
tree6f73cedc512c2f55ef8be70a55373f1a93c85edb /src/window.hpp
parent958ee36629199464c4d26ff3614e426a6265d70e (diff)
moved texture pipelines handling to window.cpp - messy
Diffstat (limited to 'src/window.hpp')
-rw-r--r--src/window.hpp14
1 files changed, 14 insertions, 0 deletions
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);