diff --git a/vulkano/src/framebuffer/traits.rs b/vulkano/src/framebuffer/traits.rs index 6cf0d140..b4f287f9 100644 --- a/vulkano/src/framebuffer/traits.rs +++ b/vulkano/src/framebuffer/traits.rs @@ -459,14 +459,14 @@ unsafe impl<'a, A, Rp> RenderPassAttachmentsList for &'a Rp } } -/// Extension trait for `RenderPassRef`. Defines which types are allowed as a list of clear values. +/// Extension trait for `RenderPassDesc`. Defines which types are allowed as a list of clear values. /// /// # Safety /// /// This trait is unsafe because vulkano doesn't check whether the clear value is in a format that /// matches the attachment. /// -pub unsafe trait RenderPassClearValues: RenderPassRef { +pub unsafe trait RenderPassClearValues: RenderPassDesc { /// Iterator that produces one clear value per attachment. type ClearValuesIter: Iterator; @@ -479,23 +479,13 @@ pub unsafe trait RenderPassClearValues: RenderPassRef { fn convert_clear_values(&self, C) -> Self::ClearValuesIter; } -unsafe impl RenderPassClearValues for Arc where Rp: RenderPassClearValues { - type ClearValuesIter = Rp::ClearValuesIter; +/*unsafe impl<'a, R> RenderPassClearValues<&'a [ClearValue]> for R where R: RenderPassDesc { + type ClearValuesIter = ; - #[inline] - fn convert_clear_values(&self, values: C) -> Self::ClearValuesIter { - (**self).convert_clear_values(values) + fn convert_clear_values(&self, C) -> Self::ClearValuesIter { + } -} - -unsafe impl<'a, C, Rp> RenderPassClearValues for &'a Rp where Rp: RenderPassClearValues { - type ClearValuesIter = Rp::ClearValuesIter; - - #[inline] - fn convert_clear_values(&self, values: C) -> Self::ClearValuesIter { - (**self).convert_clear_values(values) - } -} +}*/ /// Extension trait for `RenderPassRef` that checks whether a subpass of this render pass accepts /// the output of a fragment shader.