diff --git a/example/Vulkan/VKPipeline.cpp b/example/Vulkan/VKPipeline.cpp index 2271864a..ffdf7a42 100644 --- a/example/Vulkan/VKPipeline.cpp +++ b/example/Vulkan/VKPipeline.cpp @@ -24,7 +24,7 @@ PipelineCreater::PipelineCreater(Device *dev,RenderPass *rp) rp=dev->GetRenderPass(); pipelineInfo.renderPass = *rp; - pipelineInfo.subpass = 0; + pipelineInfo.subpass = 0; //subpass由于还不知道有什么用,所以暂时写0,待知道功用后,需改进 } { diff --git a/example/Vulkan/main.cpp b/example/Vulkan/main.cpp index ed334fc8..f342cc56 100644 --- a/example/Vulkan/main.cpp +++ b/example/Vulkan/main.cpp @@ -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);