lot more code

This commit is contained in:
Dynamitos
2025-01-28 13:11:40 +01:00
parent 80e01b60a0
commit e37fef6d26
7 changed files with 124 additions and 14 deletions
+10 -3
View File
@@ -1,4 +1,5 @@
#pragma once
#include "gpu/GPUScene.h"
#include "scene/Renderer.h"
#include <vulkan/vulkan.hpp>
#include <vulkan/vulkan_raii.hpp>
@@ -29,6 +30,8 @@ private:
void createDescriptors();
void createShaders();
std::unique_ptr<GPUScene> scene;
Context context;
Instance instance;
PhysicalDevice physicalDevice;
@@ -39,6 +42,8 @@ private:
uint32_t computeQueueFamily;
CommandPool cmdPool;
CommandBuffers cmdBuffers;
std::vector<Semaphore> semaphores;
std::vector<Fence> fences;
DescriptorSetLayout descriptorLayout;
DescriptorSet descriptorSet;
@@ -51,13 +56,15 @@ private:
Pipeline pipeline;
VkBuffer cameraBuffer;
Buffer cameraBuffer;
VmaAllocation cameraAllocation;
VkImage radianceAccumulator;
Image radianceAccumulator;
ImageView radianceView;
VmaAllocation radianceAllocation;
VkImage image;
Image image;
ImageView imageView;
VmaAllocation imageAllocation;
virtual void render(Camera cam, RenderParameter param);