Skip to main content

MaterialBase

The MaterialBase class provides an interface for customizing Material behavior. It offers virtual methods to handle Material-related Scene and Render operations.

#include <scene/TellusimMaterialBase.h>

Inheritance

Methods

Clear material.

virtual void clear()

Release resources.

virtual void release(const Device &device)

Create material.

virtual bool create(const Device &device, SceneManager &manager, SceneRender *render, Async &async)

Update material.

virtual void update(SceneManager &manager, Scene &scene)

Create callbacks.

virtual bool create_kernel(Kernel &kernel, Type type, Pass pass, uint32_t hash)
virtual bool create_pipeline(Pipeline &pipeline, Type type, Pass pass, uint32_t hash)

Begin callback.

virtual bool begin_program(const Device &device, RenderFrame &frame, Type type, Pass pass, Mode mode, uint32_t index)

Bind callbacks.

virtual bool bind_kernel(Compute &compute, RenderFrame &frame, Kernel &kernel, Type type, Pass pass, uint32_t hash)
virtual bool bind_pipeline(Command &command, RenderFrame &frame, Pipeline &pipeline, Type type, Pass pass, uint32_t hash)

Create new programs.

bool create_programs(const Device &device, SceneManager &manager, SceneRender *render, Async &async)