mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
Add Framebuffer::dimensions()
This commit is contained in:
parent
d178d58301
commit
a163c0e002
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user