CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GraphicsRenderer Class Reference

#include <CeresEngine/Graphics/GraphicsRenderer.hpp>

Public Member Functions

 GraphicsRenderer (Renderer &renderer)
 
 ~GraphicsRenderer ()
 
void render (GraphicsCommandBuffer &graphicsCommandBuffer, GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget)
 Renders the graphics command buffer onto the specified render target using the GPU command buffer.
 
GPUDevicegetDevice () const
 

Private Attributes

RenderermRenderer
 The renderer that backs the GraphicsRenderer.
 
RendererGraphicsPipelinePtr mPipeline
 A RendererGraphicsPipeline instance that is responsible for drawing the UI.
 
HashMap< TexturePtr, RendererTexturePtrmLastRendererTextures
 

Constructor & Destructor Documentation

◆ GraphicsRenderer()

CeresEngine::GraphicsRenderer::GraphicsRenderer ( Renderer renderer)
explicit

◆ ~GraphicsRenderer()

CeresEngine::GraphicsRenderer::~GraphicsRenderer ( )

Member Function Documentation

◆ getDevice()

GPUDevice & CeresEngine::GraphicsRenderer::getDevice ( ) const
Returns
The GPU device to execute UI rendering on.

◆ render()

void CeresEngine::GraphicsRenderer::render ( GraphicsCommandBuffer graphicsCommandBuffer,
GPUCommandBuffer commandBuffer,
GPURenderTarget renderTarget 
)

Renders the graphics command buffer onto the specified render target using the GPU command buffer.

Parameters
graphicsCommandBufferThe graphics command buffer containing the rendering commands.
commandBufferThe GPU command buffer to be used for rendering.
renderTargetThe GPU render target onto which the graphics command buffer will be rendered.

Member Data Documentation

◆ mLastRendererTextures

HashMap<TexturePtr, RendererTexturePtr> CeresEngine::GraphicsRenderer::mLastRendererTextures
private

◆ mPipeline

RendererGraphicsPipelinePtr CeresEngine::GraphicsRenderer::mPipeline
private

A RendererGraphicsPipeline instance that is responsible for drawing the UI.

◆ mRenderer

Renderer& CeresEngine::GraphicsRenderer::mRenderer
private

The renderer that backs the GraphicsRenderer.

Usually used to upload and stream textures as well as manage the renderer graphics pipelines.


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