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.
This commit is contained in:
parent
5d0fffc626
commit
6e7b3ced0b
20 changed files with 411 additions and 417 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue