Add create/destroy_shader functions to RenderDriver

This commit is contained in:
2025-04-18 22:27:15 +10:00
parent 47a07ea6a8
commit c7249eeb62
4 changed files with 42 additions and 0 deletions

View File

@@ -14,6 +14,10 @@
#include <vector>
namespace Nova {
struct Shader {
VkShaderModule handle = VK_NULL_HANDLE;
};
struct Surface {
VkSurfaceKHR handle = VK_NULL_HANDLE;
u32 width = 0;
@@ -53,6 +57,9 @@ namespace Nova {
void resize_swapchain(SwapchainID swapchain) override;
void destroy_swapchain(SwapchainID swapchain) override;
[[nodiscard]] ShaderID create_shader(const std::span<u8> bytes) override;
void destroy_shader(ShaderID shader) override;
[[nodiscard]] VkInstance get_instance() const;
[[nodiscard]] VkAllocationCallbacks* get_allocator(VkObjectType type) const;