ios: Simplify MTKView interface (still doesn't work though)

This commit is contained in:
wheremyfoodat 2025-03-08 20:32:42 +02:00
parent fb59320829
commit e378a52b5a
4 changed files with 11 additions and 21 deletions

View file

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