Simplified handles

This commit is contained in:
2026-09-23 23:24:23 -07:00
parent 97267f1a26
commit ae8db07d6f
8 changed files with 27 additions and 43 deletions
-2
View File
@@ -16,8 +16,6 @@ namespace sophia {
class Mesh {
public:
using HandleType = MeshHandle;
struct Vertex {
glm::vec2 position{};
glm::vec3 color{};
@@ -30,7 +30,7 @@ class RenderTargetPool {
Device& device;
vk::Format format;
Pool<RenderTarget, RenderTargetHandle> pool{"RenderTarget"};
Pool<RenderTarget> pool{"RenderTarget"};
};
} // namespace sophia
+1 -1
View File
@@ -18,7 +18,7 @@ class ResourceRegistry {
: device{device}, renderTargetPool{device, renderTargetFormat} {}
Device& device;
Pool<Mesh, MeshHandle> meshPool{"Mesh"};
Pool<Mesh> meshPool{"Mesh"};
RenderTargetPool renderTargetPool;
// TexturePool textures;
// MaterialPool materials;