diff options
author | 2022-10-04 18:24:46 -0700 | |
---|---|---|
committer | 2022-10-04 18:24:46 -0700 | |
commit | 6e7b3ced0b1daf368e44e181ecdb4ae529877eb6 (patch) | |
tree | e530025c737d509b640172d595cff0a0809f5a40 /wgpu/src/buffers/dynamic_buffers.rs | |
parent | 5d0fffc626928177239336757507b986b081b878 (diff) | |
download | iced-6e7b3ced0b1daf368e44e181ecdb4ae529877eb6.tar.gz iced-6e7b3ced0b1daf368e44e181ecdb4ae529877eb6.tar.bz2 iced-6e7b3ced0b1daf368e44e181ecdb4ae529877eb6.zip |
Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR.
Diffstat (limited to 'wgpu/src/buffers/dynamic_buffers.rs')
-rw-r--r-- | wgpu/src/buffers/dynamic_buffers.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wgpu/src/buffers/dynamic_buffers.rs b/wgpu/src/buffers/dynamic_buffers.rs index d81529ce..75cc202c 100644 --- a/wgpu/src/buffers/dynamic_buffers.rs +++ b/wgpu/src/buffers/dynamic_buffers.rs @@ -50,7 +50,6 @@ impl DynamicBufferType { } } -//TODO think about making cpu & gpu buffers optional pub(crate) struct DynamicBuffer<T: ShaderType> { offsets: Vec<wgpu::DynamicOffset>, cpu: DynamicBufferType, @@ -183,7 +182,7 @@ impl<T: ShaderType + WriteInto> DynamicBuffer<T> { let offset = self .offsets .get(index) - .expect(&format!("Index {} not found in offsets.", index)) + .expect("Index not found in offsets.") .clone(); offset |