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

@ -87,8 +87,8 @@ class Renderer {
virtual void setupGLES() {}
// Only relevant for Metal renderer on iOS
// Passes a SwiftUI MTKView Drawable to the renderer
virtual void setMTKDrawable(void* drawable) {};
// Passes a SwiftUI MTKView's layer (CAMetalLayer) to the renderer
virtual void setMTKLayer(void* layer) {};
// This function is called on every draw call before parsing vertex data.
// It is responsible for things like looking up which vertex/fragment shaders to use, recompiling them if they don't exist, choosing between