summaryrefslogtreecommitdiff
path: root/src/window.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-16 14:53:14 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-16 14:53:14 -0500
commitb4a4bf7e4211e3ee38659b498adb506ddabf5ab7 (patch)
tree14cb45796a85cc5e97eda8d45b4dd567683b5080 /src/window.hpp
parent5a7b4a65a1d93744e4a5e6cc6df4244f61b81f68 (diff)
chore: union use named struct
Diffstat (limited to 'src/window.hpp')
-rw-r--r--src/window.hpp6
1 files changed, 4 insertions, 2 deletions
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;