删除有主RenderPass,Framebuffer后范例中多余的代码
This commit is contained in:
parent
63a5aeaebe
commit
277b20c495
@ -24,7 +24,7 @@ PipelineCreater::PipelineCreater(Device *dev,RenderPass *rp)
|
||||
rp=dev->GetRenderPass();
|
||||
|
||||
pipelineInfo.renderPass = *rp;
|
||||
pipelineInfo.subpass = 0;
|
||||
pipelineInfo.subpass = 0; //subpass由于还不知道有什么用,所以暂时写0,待知道功用后,需改进
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -173,13 +173,7 @@ int main(int,char **)
|
||||
|
||||
vulkan::Semaphore *sem=device->CreateSem();
|
||||
|
||||
|
||||
vulkan::VertexInput *vi=CreateVertexBuffer(device);
|
||||
const int image_count=device->GetSwapChainImageCount();
|
||||
vulkan::Framebuffer **fb=new vulkan::Framebuffer *[image_count];
|
||||
|
||||
vulkan::ImageView *color_iv=device->GetColorImageView(0);
|
||||
vulkan::ImageView *depth_iv=device->GetDepthImageView();
|
||||
|
||||
vulkan::PipelineCreater pc(device);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user