修订其它范例以可以正常运行,接下来制作RenderTarget

This commit is contained in:
2019-07-16 10:44:19 +08:00
parent 7da7e12020
commit ec106446b2
10 changed files with 15 additions and 15 deletions

View File

@@ -76,7 +76,7 @@ private:
bool InitUBO()
{
const VkExtent2D extent=device->GetExtent();
const VkExtent2D extent=swapchain->GetExtent();
world.mvp=ortho(extent.width,extent.height);
@@ -104,7 +104,7 @@ private:
bool InitPipeline()
{
AutoDelete<vulkan::PipelineCreater>
pipeline_creater=new vulkan::PipelineCreater(device,material,device->GetMainRenderPass(),device->GetExtent());
pipeline_creater=new vulkan::PipelineCreater(device,material,swapchain->GetMainRenderPass(),swapchain->GetExtent());
pipeline_creater->CloseCullFace();
pipeline_creater->Set(PRIM_TRIANGLES);