More iOS progress

This commit is contained in:
wheremyfoodat 2025-03-06 23:42:12 +02:00
parent 1948bea209
commit 9bc50a4b9c
6 changed files with 67 additions and 26 deletions

View file

@ -42,11 +42,16 @@ class RendererMTL final : public Renderer {
virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override {}
#endif
private:
CA::MetalLayer* metalLayer;
virtual void setMTKDrawable(void* drawable, void* drawableTexture) override;
MTL::Device* device;
MTL::CommandQueue* commandQueue;
private:
CA::MetalLayer* metalLayer = nullptr;
CA::MetalDrawable* metalDrawable = nullptr;
MTL::Texture* drawableTexture = nullptr;
MTL::Device* device = nullptr;
MTL::CommandQueue* commandQueue = nullptr;
Metal::CommandEncoder commandEncoder;