Run cargo fmt
This commit is contained in:
parent
20a0577034
commit
b957453404
17 changed files with 95 additions and 107 deletions
|
|
@ -65,9 +65,7 @@ impl<T: ShaderType + WriteInto> Buffer<T> {
|
|||
pub fn uniform(device: &wgpu::Device, label: &'static str) -> Self {
|
||||
Buffer::new(
|
||||
device,
|
||||
BufferType::Uniform(encase::DynamicUniformBuffer::new(
|
||||
Vec::new(),
|
||||
)),
|
||||
BufferType::Uniform(encase::DynamicUniformBuffer::new(Vec::new())),
|
||||
label,
|
||||
wgpu::BufferUsages::UNIFORM | wgpu::BufferUsages::COPY_DST,
|
||||
)
|
||||
|
|
@ -77,9 +75,7 @@ impl<T: ShaderType + WriteInto> Buffer<T> {
|
|||
pub fn storage(device: &wgpu::Device, label: &'static str) -> Self {
|
||||
Buffer::new(
|
||||
device,
|
||||
BufferType::Storage(encase::DynamicStorageBuffer::new(
|
||||
Vec::new(),
|
||||
)),
|
||||
BufferType::Storage(encase::DynamicStorageBuffer::new(Vec::new())),
|
||||
label,
|
||||
wgpu::BufferUsages::STORAGE | wgpu::BufferUsages::COPY_DST,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue