|
| virtual | ~RenderDevice ()=default |
| virtual void | Initialize (const NativeWindowHandle &handle)=0 |
| virtual void | Shutdown ()=0 |
| virtual void | BeginFrame ()=0 |
| virtual void | EndFrame ()=0 |
| virtual void | PresentFrame ()=0 |
| virtual void | WaitIdle ()=0 |
| | Waits for outstanding device work to finish.
|
| virtual void | RetireResource (std::function< void()> release)=0 |
| | Defers resource cleanup until backend frame work permits its release.
|
| virtual void | FlushRetiredResources ()=0 |
| virtual void | Clear (float r, float g, float b, float a)=0 |
| virtual void | SetWindowSpec (const WindowSpec &spec)=0 |
| virtual WindowSpec | GetWindowSpec ()=0 |
| virtual void | DrawQueue (const std::vector< RenderPacket > &queue)=0 |
| virtual RendererAPI | GetActiveApi () const =0 |
| virtual std::shared_ptr< Mesh > | CreateMesh (const std::vector< Vertex > &vertices)=0 |
| virtual std::shared_ptr< Mesh > | CreateMesh (const std::vector< Vertex > &vertices, const std::vector< uint32_t > &indices)=0 |
| virtual std::shared_ptr< Mesh > | CreateMesh (const std::string &meshPath)=0 |
| virtual std::shared_ptr< Pipeline > | CreatePipeline (const PipelineConfig &config)=0 |
| virtual std::unique_ptr< Shader > | CreateShader (const std::string &path)=0 |
| virtual std::shared_ptr< Pipeline > | CreatePostProcessPipeline (const PipelineConfig &config)=0 |
| virtual void | SetPostProcessPipeline (std::shared_ptr< Pipeline > pipeline)=0 |
| virtual void | SetFrameView (const RenderView &view)=0 |
| virtual std::shared_ptr< RenderTarget > | CreateRenderTarget (uint32_t width, uint32_t height)=0 |
| virtual void | ResizeRenderTarget (const std::shared_ptr< RenderTarget > &target, uint32_t width, uint32_t height)=0 |
| void | UpdateRenderTargetCamera (const std::shared_ptr< RenderTarget > &target, Camera *camera) |
| virtual void | SetRenderTargetView (const std::shared_ptr< RenderTarget > &target, const RenderView &view)=0 |
| virtual void | DestroyRenderTargetGpuResources (RenderTarget &target)=0 |
| virtual void | RenderSceneToTarget (const std::shared_ptr< RenderTarget > &target, const std::vector< RenderPacket > &queue)=0 |
| virtual void * | GetRenderTargetTextureHandle (const std::shared_ptr< RenderTarget > &target)=0 |
| virtual void | SetRenderTargetClearColor (const std::shared_ptr< RenderTarget > &target, float r, float g, float b, float a)=0 |
| virtual void | SetGameRenderTarget (const std::shared_ptr< RenderTarget > &target)=0 |
| virtual void | SetSwapchainClearColor (float r, float g, float b, float a)=0 |
| virtual void | BeginTextureBatch ()=0 |
| virtual void | EndAndSubmitTextureBatch ()=0 |
| virtual bool | IsUploadBatchActive () const =0 |
| virtual const double | GetGPUTimeMS () const =0 |
Defines the graphics backend boundary and render submission contract.
The device exposes frame operations, resource creation, drawing and deferred resource retirement. RenderPacket carries geometry, pipeline, transform, material, texture and visibility inputs without exposing Vulkan command types to scene code.
- Usage
- Keep backend-specific synchronization inside the implementation. Retire resources after submitted work completes; WaitIdle is an explicit synchronization operation, not routine per-object cleanup.
Definition at line 67 of file RenderDevice.h.