From 3d8d3259e1cf5a7d88e5d1e530cc8c9bf9140734 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 18:21:00 +0200 Subject: feat: I am going to throw my computer out a window --- src/rendering/vertex_buffer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rendering/vertex_buffer.h') diff --git a/src/rendering/vertex_buffer.h b/src/rendering/vertex_buffer.h index 77a76c9..39f43ba 100644 --- a/src/rendering/vertex_buffer.h +++ b/src/rendering/vertex_buffer.h @@ -1,5 +1,7 @@ #pragma once +#include "core/memory.h" + #include #include @@ -22,7 +24,7 @@ namespace Donut ~VertexBufferLayout() = default; template - void push(uint32_t count) + void push(uint32_t count) { static_assert(false); } @@ -68,6 +70,6 @@ namespace Donut virtual const VertexBufferLayout& get_layout() const = 0; virtual void set_layout(const VertexBufferLayout& layout) = 0; - static VertexBuffer* create(const void* data, uint32_t size); + static Ref create(const void* data, uint32_t size); }; }; -- cgit v1.3