mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
fix teapot example
This commit is contained in:
parent
581c95b598
commit
4c7a1a786c
@ -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())
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user