Refactored the shader loading.

This commit is contained in:
Zed A. Shaw 2025-12-09 13:22:44 -05:00
parent 35198bce6b
commit 61931083c6
2 changed files with 58 additions and 52 deletions

View file

@ -88,6 +88,8 @@ public:
// imgui shader stuff
std::vector<ComputeEffect> backgroundEffects;
int currentBackgroundEffect{0};
// ZED's REFACTOR
VkGUI _gui;
static VulkanEngine& Get();
@ -114,6 +116,8 @@ private:
void init_descriptors();
void init_pipelines();
void init_background_pipelines();
void init_shaders();
void load_shader(const char *file_name, const char *entry_point, ComputeEffect data);
void create_swapchain(uint32_t width, uint32_t height);
void destroy_swapchain();