Skip to main content

SceneRender

The SceneRender class is an interface between the Scene and the Render. It provides methods to access core rendering components and to create and bind render resources from the Scene scope.

#include <scene/TellusimSceneRender.h>

Constructors

SceneRender()

Methods

Render manager.

virtual RenderManager getManager() const

Render renderer.

virtual RenderRenderer getRenderer() const

Noise texture.

virtual Texture getNoiseTexture() const

Create sampler.

virtual Sampler createSampler(const Device &device) const

Render kernel.

virtual bool checkKernel(const Device &device, Type type, Pass pass, uint32_t hash) const
virtual bool createKernel(const Device &device, Kernel &kernel, Type type, Pass pass, uint32_t hash) const
virtual bool setKernel(const Device &device, Compute &compute, const RenderFrame &frame, Kernel &kernel, Type type, Pass pass, uint32_t hash) const

Render pipeline.

virtual bool checkPipeline(const Device &device, Type type, Pass pass, uint32_t hash) const
virtual bool createPipeline(const Device &device, Pipeline &pipeline, Type type, Pass pass, uint32_t hash, Mask mode, Mask texture) const
virtual bool setPipeline(const Device &device, Command &command, const RenderFrame &frame, Pipeline &pipeline, Type type, Pass pass, uint32_t hash) const