aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Vulkan/VulkanContext.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-20 02:27:02 +0200
committerhachem <im@hachem.wtf>2026-08-20 02:40:07 +0200
commit5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 (patch)
tree34db1df17e8c7248aeeb92156d635d31c2484e3f /src/Platform/Vulkan/VulkanContext.h
parente3abaaf59777258ba06705135a0cafcb5918ad12 (diff)
[chore]: MASSIVE refactor + more vulkan bs
Diffstat (limited to 'src/Platform/Vulkan/VulkanContext.h')
-rw-r--r--src/Platform/Vulkan/VulkanContext.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/Platform/Vulkan/VulkanContext.h b/src/Platform/Vulkan/VulkanContext.h
deleted file mode 100644
index 71bceda..0000000
--- a/src/Platform/Vulkan/VulkanContext.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-// Pure-C++ interface to the Vulkan backend (no vulkan.h leaks into the rest of
-// the engine; the implementation lives in VulkanContext.cpp). On macOS Vulkan
-// runs through MoltenVK (Vulkan -> Metal).
-namespace Donut
-{
- class VulkanContext
- {
- public:
- VulkanContext();
- ~VulkanContext();
-
- // Creates the instance, picks a physical device, and creates the logical
- // device + graphics queue. Returns false (and logs) on failure.
- bool Init();
- void Shutdown();
-
- // Phase 1 verification: renders a known clear colour into an offscreen
- // image and reads it back, confirming instance -> device -> render pass
- // -> command buffer -> submit -> read-back all work end to end.
- bool SelfTestClear();
-
- // Phase 2/3 verification: builds a graphics pipeline from Slang-compiled
- // SPIR-V and draws a full-screen gradient triangle into the offscreen
- // image, confirming the SPIR-V -> pipeline -> draw path works.
- bool SelfTestTriangle();
-
- // B-3: renders the geodesic (black hole) fragment shader through Vulkan
- // into an offscreen image and writes it to pngPath. Exercises UBOs,
- // descriptor sets, a cubemap sampler and the geodesic pipeline.
- bool RenderGeodesic(const char* pngPath);
-
- private:
- struct Impl;
- Impl* m_Impl = nullptr;
- };
-
- // Convenience one-shot: Init() + SelfTestClear() + Shutdown(). Logs results.
- bool VulkanSelfTest();
-}