Add some renderer related helper functions in emulator and renderergl

This commit is contained in:
offtkp 2023-10-20 02:59:53 +03:00
parent df3c90109b
commit b5b94a3526
3 changed files with 7 additions and 0 deletions

View file

@ -160,6 +160,7 @@ class GPU {
}
}
Renderer* getRenderer() { return renderer.get(); }
private:
// GPU external registers
// We have them in the end of the struct for cache locality reasons. Tl;dr we want the more commonly used things to be packed in the start