removed RenderPass params at RTSwapchain's construct function
This commit is contained in:
parent
ffaa038f99
commit
2576675265
@ -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;}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user