CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::RendererContext Struct Reference

A structure that contains context given by the renderer to render it's objects. More...

#include <CeresEngine/Renderer/Renderer.hpp>

Public Member Functions

 RendererContext (GPUCommandBuffer &commandBuffer, AnyExecutor executor)
 Creates a new RendererContext with the given command buffer.
 

Public Attributes

GPUDevicedevice
 The device being used for rendering.
 
GPUCommandBuffercommandBuffer
 A command buffer to submit any graphics command required.
 
GPUUniformBufferPool uniforms
 A uniform buffer pool to be used when allocating temporary uniform buffers.
 
GPUStorageBufferPool storage
 A uniform buffer pool to be used when allocating temporary storage buffers.
 
AnyExecutor executor
 The executor that will be used to schedule renderer tasks.
 

Detailed Description

A structure that contains context given by the renderer to render it's objects.

Constructor & Destructor Documentation

◆ RendererContext()

CeresEngine::RendererContext::RendererContext ( GPUCommandBuffer commandBuffer,
AnyExecutor  executor 
)
explicit

Creates a new RendererContext with the given command buffer.

Parameters
commandBufferThe command buffer to create a new RendererContext from.

Member Data Documentation

◆ commandBuffer

GPUCommandBuffer& CeresEngine::RendererContext::commandBuffer

A command buffer to submit any graphics command required.

◆ device

GPUDevice& CeresEngine::RendererContext::device

The device being used for rendering.

◆ executor

AnyExecutor CeresEngine::RendererContext::executor

The executor that will be used to schedule renderer tasks.

◆ storage

GPUStorageBufferPool CeresEngine::RendererContext::storage

A uniform buffer pool to be used when allocating temporary storage buffers.

◆ uniforms

GPUUniformBufferPool CeresEngine::RendererContext::uniforms

A uniform buffer pool to be used when allocating temporary uniform buffers.


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