NDEVR
API Documentation
GLESGraphicsPipeline

Creates and manages the resources necessary for rendering a single Viewport within the OpenGL pipeline. More...

Inheritance diagram for GLESGraphicsPipeline:
[legend]
Collaboration diagram for GLESGraphicsPipeline:
[legend]

Public Member Functions

 GLESGraphicsPipeline (GLESGraphicsSession *session)
 Constructs a GLESGraphicsPipeline for the given session.
virtual ~GLESGraphicsPipeline ()
 Destructor.
virtual void cleanResources () override
 No-op resource cleanup.
virtual void cleanup () override
 No-op cleanup.
virtual void commit (GraphicsUpdateArguments &) override
 No-op commit.
virtual bool createPipeline (GraphicsUpdateArguments &args) override
 Finishes pipeline recreation.
virtual const ConstPointer< GraphicsDevice > & device () const override
 Returns the graphics device as a const pointer.
virtual const DynamicPointer< GraphicsDevice > & device () override
 Returns the graphics device as a mutable pointer.
virtual void drawFrame (GraphicsUpdateArguments &args) override
 Draws one frame for this pipeline's viewport.
virtual void ensureLastRenderComplete () override
 No-op to ensure the last render is complete.
virtual bool hasCommand () const override
 Checks whether there is a pending command.
virtual void init (GraphicsUpdateArguments &) override
 No-op initialization.
virtual bool runCommand (GraphicsUpdateArguments &) override
 No-op command runner.
virtual void setWindowInstance (WindowInstance *instance) override
 Sets the window instance that this pipeline renders into.
virtual void updateUniformBuffer (GraphicsUpdateArguments &) override
 Updates uniform buffers for the current viewport.
Public Member Functions inherited from GraphicsPipeline
virtual ~GraphicsPipeline ()
 Destructor.

Public Attributes

DynamicPointer< GraphicsDevicem_device
 The graphics device.
Dictionary< uint04, Timem_last_update_times
 Per-viewport last update timestamps.
GLESGraphicsSessionm_session
 The owning graphics session.
GLESGraphicsWindowm_window
 The target rendering window.

Detailed Description

Creates and manages the resources necessary for rendering a single Viewport within the OpenGL pipeline.


May be run on a single thread for each Viewport.

Definition at line 15 of file GLESGraphicsPipeline.h.

Constructor & Destructor Documentation

◆ GLESGraphicsPipeline()

GLESGraphicsPipeline::GLESGraphicsPipeline ( GLESGraphicsSession * session)
inline

Constructs a GLESGraphicsPipeline for the given session.

Parameters
[in]sessionThe owning graphics session.

Definition at line 20 of file GLESGraphicsPipeline.h.

References device(), m_device, m_session, and m_window.

Member Function Documentation

◆ createPipeline()

virtual bool GLESGraphicsPipeline::createPipeline ( GraphicsUpdateArguments & args)
inlineoverridevirtual

Finishes pipeline recreation.

Parameters
[in]argsThe graphics update context.
Returns
Always true.

Implements GraphicsPipeline.

Definition at line 42 of file GLESGraphicsPipeline.h.

References GraphicsUpdateArguments::finishPipelineRecreation().

◆ device() [1/2]

virtual const ConstPointer< GraphicsDevice > & GLESGraphicsPipeline::device ( ) const
inlineoverridevirtual

Returns the graphics device as a const pointer.

Returns
A const reference to the device ConstPointer.

Implements GraphicsPipeline.

Definition at line 51 of file GLESGraphicsPipeline.h.

References m_device.

Referenced by GLESGraphicsPipeline().

◆ device() [2/2]

virtual const DynamicPointer< GraphicsDevice > & GLESGraphicsPipeline::device ( )
inlineoverridevirtual

Returns the graphics device as a mutable pointer.

Returns
A const reference to the device DynamicPointer.

Implements GraphicsPipeline.

Definition at line 54 of file GLESGraphicsPipeline.h.

References m_device.

◆ drawFrame()

virtual void GLESGraphicsPipeline::drawFrame ( GraphicsUpdateArguments & args)
overridevirtual

Draws one frame for this pipeline's viewport.

Parameters
[in]argsThe graphics update context.

Implements GraphicsPipeline.

◆ hasCommand()

virtual bool GLESGraphicsPipeline::hasCommand ( ) const
inlineoverridevirtual

Checks whether there is a pending command.

Returns
Always true.

Implements GraphicsPipeline.

Definition at line 57 of file GLESGraphicsPipeline.h.

◆ runCommand()

virtual bool GLESGraphicsPipeline::runCommand ( GraphicsUpdateArguments & )
inlineoverridevirtual

No-op command runner.

Returns
Always true.

Implements GraphicsPipeline.

Definition at line 30 of file GLESGraphicsPipeline.h.

◆ setWindowInstance()

virtual void GLESGraphicsPipeline::setWindowInstance ( WindowInstance * instance)
overridevirtual

Sets the window instance that this pipeline renders into.

Parameters
[in]instanceThe window instance.

Implements GraphicsPipeline.

◆ updateUniformBuffer()

virtual void GLESGraphicsPipeline::updateUniformBuffer ( GraphicsUpdateArguments & )
overridevirtual

Updates uniform buffers for the current viewport.

Parameters
[in]argsThe graphics update context (unused parameter name).

Implements GraphicsPipeline.


The documentation for this class was generated from the following file: