aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/draw_buffers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/draw_buffers.rs')
-rw-r--r--stockton-render/src/draw/draw_buffers.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/stockton-render/src/draw/draw_buffers.rs b/stockton-render/src/draw/draw_buffers.rs
index 837356a..02625ad 100644
--- a/stockton-render/src/draw/draw_buffers.rs
+++ b/stockton-render/src/draw/draw_buffers.rs
@@ -37,7 +37,10 @@ pub struct DrawBuffers<'a, T: Sized> {
}
impl<'a, T> DrawBuffers<'a, T> {
- pub fn new(device: &mut Device, adapter: &Adapter) -> Result<DrawBuffers<'a, T>, CreationError> {
+ pub fn new(
+ device: &mut Device,
+ adapter: &Adapter,
+ ) -> Result<DrawBuffers<'a, T>, CreationError> {
let vert = StagedBuffer::new(device, &adapter, Usage::VERTEX, INITIAL_VERT_SIZE)?;
let index = StagedBuffer::new(device, &adapter, Usage::INDEX, INITIAL_INDEX_SIZE)?;