Fix wrong Copy/Clone implementations for Subpass

This commit is contained in:
Pierre Krieger 2016-03-07 11:31:37 +01:00
parent a4d6062e2c
commit 7561af012e

View File

@ -739,7 +739,6 @@ impl<L> Drop for RenderPass<L> {
///
/// This struct doesn't correspond to anything in Vulkan. It is simply an equivalent to a
/// combination of a render pass and subpass ID.
#[derive(Copy, Clone)]
pub struct Subpass<'a, L: 'a> {
render_pass: &'a Arc<RenderPass<L>>,
subpass_id: u32,
@ -786,6 +785,14 @@ impl<'a, L: 'a> Subpass<'a, L> {
}
}
impl<'a, L: 'a> Copy for Subpass<'a, L> {}
impl<'a, L: 'a> Clone for Subpass<'a, L> {
#[inline]
fn clone(&self) -> Subpass<'a, L> {
Subpass { render_pass: self.render_pass, subpass_id: self.subpass_id }
}
}
/// Contains the list of images attached to a renderpass.
///
/// This is a structure that you must pass when you start recording draw commands in a