From b4a4bf7e4211e3ee38659b498adb506ddabf5ab7 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 16 Jan 2025 14:53:14 -0500 Subject: chore: union use named struct --- src/window.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/window.hpp') diff --git a/src/window.hpp b/src/window.hpp index 29f7140..35891c0 100644 --- a/src/window.hpp +++ b/src/window.hpp @@ -71,8 +71,10 @@ struct ImplementedPipelines { VkSampler vkSampler_Texture = VK_NULL_HANDLE; union { VkPipeline arr[2] = { VK_NULL_HANDLE, VK_NULL_HANDLE }; - VkPipeline Texture; - VkPipeline TextureWireframe; + struct ImplementedPipelinesByName { + VkPipeline Texture; + VkPipeline TextureWireframe; + } named; } pipelines; }; extern ImplementedPipelines pkePipelines; -- cgit v1.2.3