Simplified handles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user