Fix triangle example

This commit is contained in:
Pierre Krieger 2016-10-06 10:43:46 +02:00
parent f1f9f58433
commit 9d3423c856
3 changed files with 7 additions and 6 deletions

View File

@ -34,10 +34,10 @@ use vulkano_win::VkSurfaceBuild;
use vulkano::buffer::BufferUsage;
use vulkano::buffer::CpuAccessibleBuffer;
use vulkano::command_buffer::DynamicState;
use vulkano::command_buffer::std::PrimaryCbBuilder;
use vulkano::command_buffer::std::StdCommandsList;
use vulkano::command_buffer::submit::CommandBuffer;
use vulkano::command_buffer::submit::Submission;
use vulkano::command_buffer::PrimaryCbBuilder;
use vulkano::command_buffer::CommandsList;
use vulkano::command_buffer::Submit;
use vulkano::command_buffer::Submission;
use vulkano::descriptor::pipeline_layout::EmptyPipeline;
use vulkano::device::Device;
use vulkano::framebuffer::StdFramebuffer;

View File

@ -42,6 +42,7 @@
// struct. The restrictions are enforced only in the public types.
pub use self::states_manager::StatesManager;
pub use self::std::PrimaryCbBuilder;
pub use self::std::CommandBuffer;
pub use self::std::CommandsList;
pub use self::submit::Submission;

View File

@ -339,7 +339,7 @@ macro_rules! ordered_passes_renderpass {
)*
}
impl<$($atch_name: TrackedImageView),*> IntoAttachmentsList for AList<$($atch_name),*> {
impl<$($atch_name: ImageView),*> IntoAttachmentsList for AList<$($atch_name),*> {
type List = <($($atch_name,)*) as IntoAttachmentsList>::List;
fn into_attachments_list(self) -> Self::List {
@ -349,7 +349,7 @@ macro_rules! ordered_passes_renderpass {
#[allow(non_camel_case_types)]
#[allow(unsafe_code)]
unsafe impl<$($atch_name: TrackedImageView),*> RenderPassAttachmentsList<AList<$($atch_name),*>> for CustomRenderPass {
unsafe impl<$($atch_name: ImageView),*> RenderPassAttachmentsList<AList<$($atch_name),*>> for CustomRenderPass {
#[inline]
fn check_attachments_list(&self, l: &AList<$($atch_name),*>) -> Result<(), FramebufferCreationError> {
#![allow(unused_assignments)]