![]() |
NDEVR
API Documentation
|
Creates and manages the resources necessary for converting a DesignObjectLookup into 3D rendered data in the Vulkan engine. More...
Public Member Functions | |
| virtual void | cleanResources () final override |
| Cleans up stale or unused GPU resources. | |
| void | commit (GraphicsUpdateArguments &args) final override |
| Commits pending changes to the GPU. | |
| bool | createPipeline (GraphicsUpdateArguments &args) final override |
| Creates or recreates the rendering pipeline. | |
| DynamicPointer< GraphicsPipeline > | createRenderPipeline () final override |
| Creates a new render pipeline for a viewport. | |
| virtual const ConstPointer< GraphicsDevice > & | device () const final override |
| Returns the graphics device (const). | |
| virtual const DynamicPointer< GraphicsDevice > & | device () final override |
| Returns the graphics device. | |
| virtual void | drawFrame (GraphicsUpdateArguments &) final override |
| Renders a single frame. | |
| virtual void | ensureLastRenderComplete () final override |
| Blocks until the last submitted render is complete. | |
| bool | hasCommand () const override |
| Checks whether there are pending commands to execute. | |
| virtual void | init (GraphicsUpdateArguments &) final override |
| Initializes the pipeline with the given arguments. | |
| virtual void | postClearAll () final override |
| Called after all scene objects have been cleared. | |
| bool | runCommand (GraphicsUpdateArguments &args) final override |
| Executes a queued rendering command. | |
| virtual void | setWindowInstance (WindowInstance *) final override |
| Associates a window instance with this pipeline. | |
| void | updateUniformBuffer (GraphicsUpdateArguments &args) final override |
| Updates the camera uniform buffer on the GPU. | |
| virtual UUID | uuid () final override |
| Returns the unique identifier for this session. | |
| Public Member Functions inherited from GraphicsSession | |
| virtual | ~GraphicsSession () |
| Destructor. | |
| virtual void | addCamera (const UUID &object) |
| Adds a camera to this session. | |
| bool | isActive () const |
| Checks whether this session is active. | |
| virtual void | readShader (const StringView &shader)=0 |
| Reads and compiles a shader for use in rendering. | |
| virtual void | removeCamera (const UUID &camera) |
| Removes a camera from this session. | |
| void | setActive (bool active) |
| Sets whether this session is active. | |
| Public Member Functions inherited from GraphicsPipeline | |
| virtual | ~GraphicsPipeline () |
| Destructor. | |
Protected Types | |
| enum | RasterizerType { e_filled_cull_cw , e_filled_cull_ccw , e_filled_cull_none , e_outline , e_size } |
| Types of rasterizer configurations used during rendering. More... | |
Protected Member Functions | |
| bool | addRenderGeometry (const Geometry &geo) override |
| Adds a geometry for rendering. | |
| void | cleanup () final override |
| Releases all GPU resources. | |
| void | removeRenderGeometry (const Geometry &geo) override |
| Removes a geometry from rendering. | |
Additional Inherited Members | |
| Public Types inherited from GraphicsSession | |
| enum | AddObjectMode { e_add_object , e_ensure_pipeline , e_ensure_pipeline_and_add } |
| Modes for adding objects to the session. More... | |
| Protected Attributes inherited from GraphicsSession | |
| Buffer< UUID > | m_added_cameras |
| Cameras registered with this session. | |
| bool | m_is_active = false |
| Whether this session is currently active. | |
| bool | m_needs_clear_all = false |
| Whether a full clear is pending. | |
| bool | m_needs_command_refresh = false |
| Whether command buffers need refreshing. | |
Creates and manages the resources necessary for converting a DesignObjectLookup into 3D rendered data in the Vulkan engine.
Definition at line 50 of file VulkanSession.h.
|
protected |
Types of rasterizer configurations used during rendering.
Definition at line 110 of file VulkanSession.h.
|
overrideprotectedvirtual |
Adds a geometry for rendering.
| [in] | geo | The geometry to add. |
Implements GraphicsSession.
|
finaloverridevirtual |
Commits pending changes to the GPU.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
|
finaloverridevirtual |
Creates or recreates the rendering pipeline.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
|
finaloverridevirtual |
Creates a new render pipeline for a viewport.
Implements GraphicsSession.
References UUID::CreateUUID().
|
inlinefinaloverridevirtual |
Returns the graphics device (const).
Implements GraphicsPipeline.
Definition at line 56 of file VulkanSession.h.
Referenced by QtVulkanSession::QtVulkanSession().
|
inlinefinaloverridevirtual |
Returns the graphics device.
Implements GraphicsPipeline.
Definition at line 57 of file VulkanSession.h.
|
inlinefinaloverridevirtual |
Renders a single frame.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
Definition at line 82 of file VulkanSession.h.
|
overridevirtual |
Checks whether there are pending commands to execute.
Implements GraphicsPipeline.
|
inlinefinaloverridevirtual |
Initializes the pipeline with the given arguments.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
Definition at line 86 of file VulkanSession.h.
|
overrideprotectedvirtual |
Removes a geometry from rendering.
| [in] | geo | The geometry to remove. |
Implements GraphicsSession.
|
finaloverridevirtual |
Executes a queued rendering command.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
References runCommand().
Referenced by runCommand().
|
inlinefinaloverridevirtual |
Associates a window instance with this pipeline.
| [in] | instance | The window instance. |
Implements GraphicsPipeline.
Definition at line 84 of file VulkanSession.h.
|
finaloverridevirtual |
Updates the camera uniform buffer on the GPU.
| [in] | args | The update arguments. |
Implements GraphicsPipeline.
|
inlinefinaloverridevirtual |
Returns the unique identifier for this session.
Implements GraphicsSession.
Definition at line 80 of file VulkanSession.h.