aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Vulkan/VulkanRendererAPI.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-22 00:22:12 +0200
committerhachem <im@hachem.wtf>2025-08-22 00:22:12 +0200
commit01fadbecbed89afffb18b2cf5cf3972845a7a169 (patch)
tree1faf64e41f4a9b59e8ad6f68363c590dfc089cc4 /src/Platform/Vulkan/VulkanRendererAPI.cpp
parent6f72049359651155be62846e7d080d7a5e871096 (diff)
[add]: frame exporting
Diffstat (limited to 'src/Platform/Vulkan/VulkanRendererAPI.cpp')
-rw-r--r--src/Platform/Vulkan/VulkanRendererAPI.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Platform/Vulkan/VulkanRendererAPI.cpp b/src/Platform/Vulkan/VulkanRendererAPI.cpp
index 0dc9f0e..79f7633 100644
--- a/src/Platform/Vulkan/VulkanRendererAPI.cpp
+++ b/src/Platform/Vulkan/VulkanRendererAPI.cpp
@@ -71,4 +71,16 @@ namespace Donut
{
// TODO(Hachem): Implement Vulkan image texture binding
}
+
+ void VulkanRendererAPI::ReadPixels(uint32_t x, uint32_t y, uint32_t width, uint32_t height,
+ uint32_t format, uint32_t type, void* pixels)
+ {
+ // TODO(Hachem): Implement Vulkan pixel reading
+ // For now, this is a placeholder implementation
+ // In a real Vulkan implementation, this would involve:
+ // 1. Creating a staging buffer
+ // 2. Copying the framebuffer to the staging buffer
+ // 3. Mapping the staging buffer and copying to the pixels array
+ // 4. Unmapping and destroying the staging buffer
+ }
};