mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
Fix wrong Copy/Clone implementations for Subpass
This commit is contained in:
parent
a4d6062e2c
commit
7561af012e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user