removed RenderPass params at RTSwapchain's construct function

This commit is contained in:
hyzboy 2025-01-26 13:36:15 +08:00
parent ffaa038f99
commit 2576675265
3 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ class RTSwapchain:public RenderTarget
public:
RTSwapchain(VkDevice dev,Swapchain *sc,DeviceQueue *q,Semaphore *rcs,Semaphore *pcs,RenderPass *rp);
RTSwapchain(VkDevice dev,Swapchain *sc,DeviceQueue *q,Semaphore *rcs,Semaphore *pcs);
~RTSwapchain();
uint32_t GetColorCount () override {return 1;}

View File

@ -3,7 +3,7 @@
#include<hgl/graph/VKSemaphore.h>
VK_NAMESPACE_BEGIN
RTSwapchain::RTSwapchain(VkDevice dev,Swapchain *sc,DeviceQueue *q,Semaphore *rcs,Semaphore *pcs,RenderPass *rp):RenderTarget(q,rcs)
RTSwapchain::RTSwapchain(VkDevice dev,Swapchain *sc,DeviceQueue *q,Semaphore *rcs,Semaphore *pcs):RenderTarget(q,rcs)
{
device=dev;

View File

@ -183,14 +183,14 @@ bool SwapchainModule::CreateSwapchainRenderTarget()
DeviceQueue *q=device->CreateQueue(swapchain->image_count,false);
Semaphore *render_complete_semaphore=device->CreateGPUSemaphore();
Semaphore *present_complete_semaphore=device->CreateGPUSemaphore();
sc_render_target=new RTSwapchain( device->GetDevice(),
swapchain,
q,
render_complete_semaphore,
present_complete_semaphore,
sc_render_pass
present_complete_semaphore
);
return true;