fix teapot example

This commit is contained in:
Luxko 2017-04-08 20:29:15 +08:00
parent 581c95b598
commit 4c7a1a786c
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ extern crate vulkano_win;
use vulkano_win::VkSurfaceBuild;
use vulkano::command_buffer::CommandBufferBuilder;
use vulkano::sync::GpuFuture;
use vulkano::image::IntoImageView;
use std::sync::Arc;
@ -67,7 +68,7 @@ fn main() {
};
let depth_buffer = vulkano::image::attachment::AttachmentImage::transient(&device, images[0].dimensions(), vulkano::format::D16Unorm).unwrap();
let depth_buffer = vulkano::image::attachment::AttachmentImage::transient(&device, images[0].dimensions(), vulkano::format::D16Unorm).unwrap().into_image_view();
let vertex_buffer = vulkano::buffer::cpu_access::CpuAccessibleBuffer
::from_iter(&device, &vulkano::buffer::BufferUsage::all(), Some(queue.family()), examples::VERTICES.iter().cloned())

View File

@ -63,6 +63,7 @@ macro_rules! ordered_passes_renderpass {
mod scope {
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use std::sync::Arc;
use $crate::format::ClearValue;