Starting metal backend

This commit is contained in:
Dynamitos
2024-04-09 16:41:12 +02:00
parent fdb43626bb
commit 2359b1e984
24 changed files with 1116 additions and 93 deletions
+5
View File
@@ -51,8 +51,13 @@ public:
virtual Gfx::OVertexInput createVertexInput(VertexInputStateCreateInfo createInfo) = 0;
virtual void resolveTexture(Gfx::PTexture source, Gfx::PTexture destination) = 0;
MTL::Device* getDevice() const { return device; }
protected:
MTL::Device* device;
MTL::Library* library;
MTL::CommandQueue* queue;
};
DEFINE_REF(Graphics)
} // namespace Metal
} // namespace Seele