mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Fix triangle example
This commit is contained in:
parent
f1f9f58433
commit
9d3423c856
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user