From 3a1943bfd6272bb2528566bab8d22f16ffcb971d Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 16 Aug 2025 07:29:38 +1000 Subject: [PATCH] actually initialize the variable properly --- vulkan.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vulkan.d b/vulkan.d index 4ae8742..098cf5b 100644 --- a/vulkan.d +++ b/vulkan.d @@ -390,11 +390,13 @@ struct QueueInfo bool single_queue; } -const u8[] CONVERT_SHADER = mixin(Embed(convert_shader)); +u8[] CONVERT_SHADER; Vulkan Init(PlatformHandles platform_handles, u64 permanent_mem, u64 frame_mem, string convert_shader) { + CONVERT_SHADER = mixin(Embed(convert_shader)); + bool success = true; Vulkan vk = {