删除有主RenderPass,Framebuffer后范例中多余的代码

This commit is contained in:
hyzboy 2019-04-23 00:11:34 +08:00
parent 63a5aeaebe
commit 277b20c495
2 changed files with 1 additions and 7 deletions

View File

@ -24,7 +24,7 @@ PipelineCreater::PipelineCreater(Device *dev,RenderPass *rp)
rp=dev->GetRenderPass();
pipelineInfo.renderPass = *rp;
pipelineInfo.subpass = 0;
pipelineInfo.subpass = 0; //subpass由于还不知道有什么用所以暂时写0待知道功用后需改进
}
{

View File

@ -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);