Loading...
Searching...
No Matches
oscr::has_renderer_state Concept Reference

#include <Metadatas.hpp>

Concept definition

template<typename T>
concept oscr::has_renderer_state = requires(T& t) { t.renderlist; } || requires { &T::init; }
|| requires { &T::update; } || requires { &T::release; }
|| requires { &T::runInitialPasses; } || requires { &T::runRenderPass; }
|| requires { &T::inputAboutToFinish; }
Definition Metadatas.hpp:61

Detailed Description

Does the object declare any of the renderer-side entry points score calls on the object it gives a renderer? Such an object holds state that belongs to one RenderList and cannot be shared between them.

Detection is by address-of on the member: an object hiding one of these behind a template or an overload set reads as "no hook" here.