RenderThreadRhiMetal Class Reference
Implementation of RenderThreadRhi for the Metal graphics API. More...
#include <MinimalSceneRhiMetal.hh>
Public Member Functions | |
RenderThreadRhiMetal (GzRenderer *_renderer) | |
Constructor. More... | |
virtual | ~RenderThreadRhiMetal () override |
virtual std::string | Initialize () override |
Carry out initialization. More... | |
virtual void | RenderNext (RenderSync *_renderSync) override |
Render when safe. More... | |
virtual void | ShutDown () override |
Shutdown the thread and the render engine. More... | |
virtual void * | TexturePtr () const override |
Return a pointer to the graphics API texture Id. More... | |
virtual QSize | TextureSize () const override |
Return the size of the texture. More... | |
Public Member Functions inherited from RenderThreadRhi | |
virtual | ~RenderThreadRhi () |
Destructor. More... | |
virtual QOpenGLContext * | Context () const |
OpenGL context to be passed to the render engine. More... | |
virtual void | SetContext (QOpenGLContext *_context) |
Set the OpenGL context to be passed to the render engine. More... | |
virtual void | SetSurface (QOffscreenSurface *_surface) |
Set the offscreen surface to render to. More... | |
virtual QOffscreenSurface * | Surface () const |
Offscreen surface to render to. More... | |
Detailed Description
Implementation of RenderThreadRhi for the Metal graphics API.
Constructor & Destructor Documentation
◆ ~RenderThreadRhiMetal()
|
overridevirtual |
◆ RenderThreadRhiMetal()
RenderThreadRhiMetal | ( | GzRenderer * | _renderer | ) |
Constructor.
- Parameters
-
[in] _renderer The gz-rendering renderer
Member Function Documentation
◆ Initialize()
|
overridevirtual |
Carry out initialization.
On macOS this must be run on the main thread
- Returns
- Error message if initialization failed. If empty, no errors occurred.
Implements RenderThreadRhi.
◆ RenderNext()
|
overridevirtual |
Render when safe.
- Parameters
-
[in] _renderSync RenderSync to safely synchronize Qt and worker thread (this)
Implements RenderThreadRhi.
◆ ShutDown()
|
overridevirtual |
Shutdown the thread and the render engine.
Implements RenderThreadRhi.
◆ TexturePtr()
|
overridevirtual |
Return a pointer to the graphics API texture Id.
Implements RenderThreadRhi.
◆ TextureSize()
|
overridevirtual |
Return the size of the texture.
Implements RenderThreadRhi.
The documentation for this class was generated from the following file: