summaryrefslogtreecommitdiffstats
path: root/wgpu/src/buffer/dynamic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/buffer/dynamic.rs')
-rw-r--r--wgpu/src/buffer/dynamic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/buffer/dynamic.rs b/wgpu/src/buffer/dynamic.rs
index 18be03dd..88289b98 100644
--- a/wgpu/src/buffer/dynamic.rs
+++ b/wgpu/src/buffer/dynamic.rs
@@ -80,7 +80,7 @@ impl<T: ShaderType + WriteInto> Buffer<T> {
pub fn push(&mut self, value: &T) {
//this write operation on the cpu buffer will adjust for uniform alignment requirements
let offset = self.cpu.write(value);
- self.offsets.push(offset as u32);
+ self.offsets.push(offset);
}
/// Resize buffer contents if necessary. This will re-create the GPU buffer if current size is