mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-12-02 19:54:18 +00:00
Remove some useless VkObject trait impls
This commit is contained in:
parent
ae967d267a
commit
abec2d9c4f
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user