diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-16 14:53:14 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-16 14:53:14 -0500 |
| commit | b4a4bf7e4211e3ee38659b498adb506ddabf5ab7 (patch) | |
| tree | 14cb45796a85cc5e97eda8d45b4dd567683b5080 /src/window.hpp | |
| parent | 5a7b4a65a1d93744e4a5e6cc6df4244f61b81f68 (diff) | |
chore: union use named struct
Diffstat (limited to 'src/window.hpp')
| -rw-r--r-- | src/window.hpp | 6 |
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; |
