#include <SlrShader.h>
Public Types | |
typedef SlrShader *(* | ShaderBuilder) (SlrEngineContext *) |
Constructor method definitions used for 'build()' methods in plugins. | |
![]() | |
typedef Node *(* | NodeBuilder) (void *) |
typedef std::vector< Description * > | DescriptionList |
Public Member Functions | |
Description (const char *shaderClassName, ShaderBuilder shaderBuilder) | |
SlrShader specific builder. | |
const std::string_view & | classPrefix () const override |
const std::string_view & | classSuffix () const override |
const char * | shaderClass () const |
Name of the SlrShader class without any leading prefix or or trailing suffix. | |
const std::string & | shaderPluginName () const |
Full name of plugin with prefix and suffix. | |
![]() | |
Description (const char *className, const std::string_view &classPrefix, const std::string_view &classSuffix) | |
Constructors set name and label to same value. | |
const std::string_view & | pluginClass () const |
Name of the plugin class without any leading prefix or suffix. | |
const std::string & | pluginName () const |
Full name of plugin with prefix and suffix. | |
virtual const std::string_view & | classPrefix () const |
virtual const std::string_view & | classSuffix () const |
Public Attributes | |
ShaderBuilder | builderFunc |
Call this to construct an SlrShader object. | |
![]() | |
const char * | compiled |
const char * | plugin |
License * | license |
Additional Inherited Members | |
![]() | |
static std::string | BuildPluginName (const std::string_view &className, const std::string_view &pluginPrefix, const std::string_view &pluginSuffix) |
static const Description * | find (const std::string_view &className, const std::string_view &pluginPrefix=std::string_view(""), const std::string_view &pluginSuffix=std::string_view("")) |
![]() | |
void | ctor (void(*f)(Description *)) |
void | ctor (void(*f)(Description *), NodeBuilder nodeBuilder) |
![]() | |
static void | pluginBuilderCallback (DD::Image::Description *desc) |
![]() | |
std::string_view | _pluginClass |
Name of plugin class from the ctor - NOT the plugin .so filename! | |
std::string | _pluginName |
Full name of plugin with prefix and suffix: '<prefix><_pluginClass><suffix>'. | |
This structure creates a subclass of SlrShader, possibly from loading a plugin file or a compiled-in Description.
|
inlineoverridevirtual |
Prefix and suffix strings prepended and appended to pluginClass() string to construct plugin filenames.
Reimplemented from DD::Image::PluginObject::Description.
|
inlineoverridevirtual |
Reimplemented from DD::Image::PluginObject::Description.
©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |