moved CreatePipeline functions to RenderPass class.
This commit is contained in:
@@ -48,6 +48,7 @@ protected:
|
||||
protected:
|
||||
|
||||
GPUDevice * device =nullptr;
|
||||
RenderPass * device_render_pass =nullptr;
|
||||
SwapchainRenderTarget * sc_render_target =nullptr;
|
||||
|
||||
protected:
|
||||
@@ -118,6 +119,8 @@ public:
|
||||
if(!device)
|
||||
return(false);
|
||||
|
||||
device_render_pass=device->GetRenderPass();
|
||||
|
||||
db=new RenderResource(device);
|
||||
|
||||
InitCommandBuffer();
|
||||
@@ -258,7 +261,7 @@ public:
|
||||
}
|
||||
|
||||
template<typename ...ARGS>
|
||||
Pipeline *CreatePipeline(ARGS...args){return sc_render_target->CreatePipeline(args...);}
|
||||
Pipeline *CreatePipeline(ARGS...args){return device_render_pass->CreatePipeline(args...);}
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user