ios: Simplify MTKView interface (still doesn't work though)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user