![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
An effect description holds all necessary information for an effect to be created. More...
#include <EffectDescription.h>
Public Member Functions | |
EffectDescription () | |
Constructor of EffectDescription. More... | |
status_t | setVertexShader (const char *shaderSource) |
Sets vertex shader source from string. More... | |
status_t | setFragmentShader (const char *shaderSource) |
Sets fragment shader source from string. More... | |
status_t | setGeometryShader (const char *shaderSource) |
Sets geometry shader source from string. More... | |
status_t | setVertexShaderFromFile (const char *shaderSourceFileName) |
Reads and sets vertex shader source from file. More... | |
status_t | setFragmentShaderFromFile (const char *shaderSourceFileName) |
Reads and sets fragment shader source from file. More... | |
status_t | setGeometryShaderFromFile (const char *shaderSourceFileName) |
Reads and sets geometry shader source from file. More... | |
status_t | addCompilerDefine (const char *define) |
Adds a compiler define. The define string will be injected as defined into the final shader code. More... | |
status_t | setUniformSemantic (const char *inputName, EEffectUniformSemantic semanticType) |
Sets an uniform semantic. Used for uniforms which are not locally available on the client, such as projection matrix, framebuffer resolution etc. Value of an uniform corresponding to the given semantic name will be automatically set based on its semantic type. More... | |
status_t | setAttributeSemantic (const char *inputName, EEffectAttributeSemantic semanticType) |
Sets an attribute semantic. Used to mark attributes as special inputs (eg. text specific inputs). These attributes are then set to use data provided by Ramses, not user. More... | |
const char * | getVertexShader () const |
Gets vertex shader code. More... | |
const char * | getFragmentShader () const |
Gets fragment shader code that is currently set. More... | |
const char * | getGeometryShader () const |
Gets geometry shader code that is currently set. More... | |
uint32_t | getNumberOfCompilerDefines () const |
Gets number of compiler defines. More... | |
const char * | getCompilerDefine (uint32_t index) const |
Gets compiler define. More... | |
![]() | |
status_t | validate () const |
Generates verbose validation of the object. More... | |
const char * | getValidationReport (EValidationSeverity minSeverity=EValidationSeverity_Info) const |
Provides verbose report in human readable form generated by validate. More... | |
const char * | getStatusMessage (status_t status) const |
Get the string description for a status provided by a RAMSES API function. More... | |
StatusObject (const StatusObject &other)=delete | |
Deleted copy constructor. More... | |
StatusObject & | operator= (const StatusObject &other)=delete |
Deleted copy assignment. More... | |
Public Attributes | |
class EffectDescriptionImpl & | impl |
Stores internal data for implementation specifics of EffectDescription. More... | |
![]() | |
class StatusObjectImpl & | impl |
Friends | |
class | RamsesClientImpl |
RamsesClientImpl needs access to internals of EffectDescription. More... | |
Additional Inherited Members | |
![]() | |
StatusObject (StatusObjectImpl &pimpl) | |
Constructor for StatusObject. More... | |
virtual | ~StatusObject () |
Destructor of the StatusObject. More... | |
An effect description holds all necessary information for an effect to be created.
ramses::EffectDescription::EffectDescription | ( | ) |
Constructor of EffectDescription.
status_t ramses::EffectDescription::addCompilerDefine | ( | const char * | define | ) |
Adds a compiler define. The define string will be injected as defined into the final shader code.
[in] | define | Definition name to be set at compilation time. |
const char* ramses::EffectDescription::getCompilerDefine | ( | uint32_t | index | ) | const |
Gets compiler define.
[in] | index | Index of define to retrieve. |
const char* ramses::EffectDescription::getFragmentShader | ( | ) | const |
Gets fragment shader code that is currently set.
const char* ramses::EffectDescription::getGeometryShader | ( | ) | const |
Gets geometry shader code that is currently set.
uint32_t ramses::EffectDescription::getNumberOfCompilerDefines | ( | ) | const |
Gets number of compiler defines.
const char* ramses::EffectDescription::getVertexShader | ( | ) | const |
Gets vertex shader code.
status_t ramses::EffectDescription::setAttributeSemantic | ( | const char * | inputName, |
EEffectAttributeSemantic | semanticType | ||
) |
Sets an attribute semantic. Used to mark attributes as special inputs (eg. text specific inputs). These attributes are then set to use data provided by Ramses, not user.
[in] | inputName | Name of the effect input as used in the shader source code. |
[in] | semanticType | Semantic type to be used for given input. |
status_t ramses::EffectDescription::setFragmentShader | ( | const char * | shaderSource | ) |
Sets fragment shader source from string.
[in] | shaderSource | Fragment shader source code. |
status_t ramses::EffectDescription::setFragmentShaderFromFile | ( | const char * | shaderSourceFileName | ) |
Reads and sets fragment shader source from file.
[in] | shaderSourceFileName | File with fragment shader source code. |
status_t ramses::EffectDescription::setGeometryShader | ( | const char * | shaderSource | ) |
Sets geometry shader source from string.
[in] | shaderSource | Geometry shader source code. |
status_t ramses::EffectDescription::setGeometryShaderFromFile | ( | const char * | shaderSourceFileName | ) |
Reads and sets geometry shader source from file.
[in] | shaderSourceFileName | File with geometry shader source code. |
status_t ramses::EffectDescription::setUniformSemantic | ( | const char * | inputName, |
EEffectUniformSemantic | semanticType | ||
) |
Sets an uniform semantic. Used for uniforms which are not locally available on the client, such as projection matrix, framebuffer resolution etc. Value of an uniform corresponding to the given semantic name will be automatically set based on its semantic type.
[in] | inputName | Name of the effect input as used in the shader source code. |
[in] | semanticType | Semantic type to be used for given input. |
status_t ramses::EffectDescription::setVertexShader | ( | const char * | shaderSource | ) |
Sets vertex shader source from string.
[in] | shaderSource | Vertex shader source code. |
status_t ramses::EffectDescription::setVertexShaderFromFile | ( | const char * | shaderSourceFileName | ) |
Reads and sets vertex shader source from file.
[in] | shaderSourceFileName | File with vertex shader source code. |
|
friend |
RamsesClientImpl needs access to internals of EffectDescription.
class EffectDescriptionImpl& ramses::EffectDescription::impl |
Stores internal data for implementation specifics of EffectDescription.