Skip to content

Commit a815f11

Browse files
committed
fix unnecessary bind group recreation during viewport panning
1 parent 0c61803 commit a815f11

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • node-graph/libraries/wgpu-executor/src

node-graph/libraries/wgpu-executor/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ impl TargetTexture {
8484
&self.view
8585
}
8686

87+
/// Returns the size of the texture.
88+
pub fn size(&self) -> UVec2 {
89+
self.size
90+
}
91+
8792
/// Returns a reference to the underlying texture.
8893
pub fn texture(&self) -> &wgpu::Texture {
8994
&self.texture

0 commit comments

Comments
 (0)