removed GPUDevice::device_render_pass

This commit is contained in:
2025-01-25 00:15:00 +08:00
parent 6080422f3a
commit ea6c009c70
7 changed files with 18 additions and 14 deletions

View File

@@ -38,7 +38,6 @@ class GPUDevice
private:
DeviceRenderPassManage *render_pass_manage;
RenderPass *device_render_pass;
RTSwapchain *sc_rt;
@@ -79,7 +78,7 @@ public:
const VkColorSpaceKHR GetColorSpace ()const {return attr->surface_format.colorSpace;}
VkQueue GetGraphicsQueue () {return attr->graphics_queue;}
RenderPass * GetRenderPass () {return device_render_pass;}
RenderPass * GetRenderPass () {return sc_rt->GetRenderPass();}
RTSwapchain * GetSwapchainRT () {return sc_rt;}

View File

@@ -36,6 +36,8 @@ public:
VkSurfaceFormatKHR surface_format;
VkFormat depth_format;
RenderPass * render_pass =nullptr;
uint32_t image_count =0;
SwapchainImage * sc_image =nullptr;