Remove some useless VkObject trait impls

This commit is contained in:
Pierre Krieger 2017-01-25 22:14:53 +01:00
parent ae967d267a
commit abec2d9c4f
2 changed files with 1 additions and 21 deletions

View File

@ -41,7 +41,7 @@ use vk;
///
/// The `Framebuffer` struct should always implement the `FramebufferAbstract` trait. Therefore
/// you can turn any `Arc<Framebuffer<Rp, A>>` into a `Arc<FramebufferAbstract>` if you need to.
pub struct Framebuffer<Rp = Arc<RenderPass>, A = Box<AttachmentsList>> {
pub struct Framebuffer<Rp = Arc<RenderPass>, A = Box<AttachmentsList>> { // TODO: remove default params
device: Arc<Device>,
render_pass: Rp,
framebuffer: vk::Framebuffer,
@ -186,16 +186,6 @@ unsafe impl<Rp, A> FramebufferRenderPass for Framebuffer<Rp, A> {
}
}
// TODO: remove in favor of FramebufferSys?
unsafe impl<Rp, A> VulkanObject for Framebuffer<Rp, A> {
type Object = vk::Framebuffer;
#[inline]
fn internal_object(&self) -> vk::Framebuffer {
self.framebuffer
}
}
impl<Rp, A> Drop for Framebuffer<Rp, A> {
#[inline]
fn drop(&mut self) {

View File

@ -395,16 +395,6 @@ unsafe impl<D> RenderPassRef for RenderPass<D> where D: RenderPassDesc {
}
}
// TODO: remove in favor of RenderpassSys?
unsafe impl<D> VulkanObject for RenderPass<D> where D: RenderPassDesc {
type Object = vk::RenderPass;
#[inline]
fn internal_object(&self) -> vk::RenderPass {
self.renderpass
}
}
impl<D> Drop for RenderPass<D> {
#[inline]
fn drop(&mut self) {