Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/vulkan/vk_backend.hh')
-rw-r--r--source/blender/gpu/vulkan/vk_backend.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/gpu/vulkan/vk_backend.hh b/source/blender/gpu/vulkan/vk_backend.hh
index 549478586e8..55b528bfa00 100644
--- a/source/blender/gpu/vulkan/vk_backend.hh
+++ b/source/blender/gpu/vulkan/vk_backend.hh
@@ -13,6 +13,16 @@ namespace blender::gpu {
class VKBackend : public GPUBackend {
public:
+ VKBackend()
+ {
+ VKBackend::init_platform();
+ }
+
+ virtual ~VKBackend()
+ {
+ VKBackend::platform_exit();
+ }
+
void delete_resources() override;
void samplers_update() override;
@@ -37,6 +47,10 @@ class VKBackend : public GPUBackend {
void render_begin() override;
void render_end() override;
void render_step() override;
+
+ private:
+ static void init_platform();
+ static void platform_exit();
};
} // namespace blender::gpu \ No newline at end of file