Rebel Fork Framework
|
#include <Urho3D/RenderPipeline/ShaderProgramCompositor.h>
Public Member Functions | |
void | Clear () |
void | AddCommonShaderDefines (ea::string_view defines) |
void | AddShaderDefines (ShaderType type, ea::string_view defines) |
Public Attributes | |
ea::string | shaderName_ [MAX_SHADER_TYPES] |
ea::string | shaderDefines_ [MAX_SHADER_TYPES] |
ea::string | commonShaderDefines_ |
bool | isInstancingUsed_ {} |
Description of shader program used for rendering.
Shader name may be different for different stages, but this use case is obsolete and may not be fully supported by tools. For best compatibility use same shader for all stages.
Shader defines should be the same for all stages, with one exception: Defines that are ignored by the stage may be omitted in the stage defines list.
These restrictions are imposed to simplify possible shader preprocessing.
TODO: Consider replacing define string with tokenized define lists
bool Urho3D::ShaderProgramDesc::isInstancingUsed_ {} |
Hints about what the shader program is