equal
deleted
inserted
replaced
147 pub fn next_power_of_two(&self) -> Self { |
147 pub fn next_power_of_two(&self) -> Self { |
148 Self { |
148 Self { |
149 width: self.width.next_power_of_two(), |
149 width: self.width.next_power_of_two(), |
150 height: self.height.next_power_of_two(), |
150 height: self.height.next_power_of_two(), |
151 } |
151 } |
|
152 } |
|
153 |
|
154 #[inline] |
|
155 pub fn transpose(&self) -> Self { |
|
156 Self::new(self.height, self.width) |
152 } |
157 } |
153 |
158 |
154 #[inline] |
159 #[inline] |
155 pub fn to_mask(&self) -> SizeMask { |
160 pub fn to_mask(&self) -> SizeMask { |
156 SizeMask::new(*self) |
161 SizeMask::new(*self) |