From 01fadbecbed89afffb18b2cf5cf3972845a7a169 Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 22 Aug 2025 00:22:12 +0200 Subject: [add]: frame exporting --- src/Platform/Vulkan/VulkanRendererAPI.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Platform/Vulkan/VulkanRendererAPI.cpp') 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 + } }; -- cgit v1.3