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:
|
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();
|
~RTSwapchain();
|
||||||
|
|
||||||
uint32_t GetColorCount () override {return 1;}
|
uint32_t GetColorCount () override {return 1;}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include<hgl/graph/VKSemaphore.h>
|
#include<hgl/graph/VKSemaphore.h>
|
||||||
|
|
||||||
VK_NAMESPACE_BEGIN
|
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;
|
device=dev;
|
||||||
|
|
||||||
|
@ -183,14 +183,14 @@ bool SwapchainModule::CreateSwapchainRenderTarget()
|
|||||||
|
|
||||||
DeviceQueue *q=device->CreateQueue(swapchain->image_count,false);
|
DeviceQueue *q=device->CreateQueue(swapchain->image_count,false);
|
||||||
Semaphore *render_complete_semaphore=device->CreateGPUSemaphore();
|
Semaphore *render_complete_semaphore=device->CreateGPUSemaphore();
|
||||||
|
|
||||||
Semaphore *present_complete_semaphore=device->CreateGPUSemaphore();
|
Semaphore *present_complete_semaphore=device->CreateGPUSemaphore();
|
||||||
|
|
||||||
sc_render_target=new RTSwapchain( device->GetDevice(),
|
sc_render_target=new RTSwapchain( device->GetDevice(),
|
||||||
swapchain,
|
swapchain,
|
||||||
q,
|
q,
|
||||||
render_complete_semaphore,
|
render_complete_semaphore,
|
||||||
present_complete_semaphore,
|
present_complete_semaphore
|
||||||
sc_render_pass
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user