Add Framebuffer::dimensions()

This commit is contained in:
Pierre Krieger 2016-02-25 15:48:34 +01:00
parent d178d58301
commit a163c0e002

View File

@ -790,6 +790,12 @@ impl<L> Framebuffer<L> {
self.renderpass.is_compatible_with(renderpass)
}
/// Returns the width, height and layers of this framebuffer.
#[inline]
pub fn dimensions(&self) -> [u32; 3] {
[self.dimensions.0, self.dimensions.1, self.dimensions.2]
}
/// Returns the width of the framebuffer in pixels.
#[inline]
pub fn width(&self) -> u32 {