mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-02 05:16:19 +12:00
ios: Simplify MTKView interface (still doesn't work though)
This commit is contained in:
parent
fb59320829
commit
e378a52b5a
4 changed files with 11 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue