Urho3D
Public Member Functions | Public Attributes | List of all members
Urho3D::RenderPathCommand Struct Reference

Rendering path command. More...

#include </home/runner/work/rurho3d.github.io/rurho3d.github.io/urho3d_repo/Source/Urho3D/Graphics/RenderPath.h>

Public Member Functions

void Load (const XMLElement &element)
 Read from an XML element.
 
void SetTextureName (TextureUnit unit, const String &name)
 Set a texture resource name. Can also refer to a rendertarget defined in the rendering path.
 
void SetShaderParameter (const String &name, const Variant &value)
 Set a shader parameter.
 
void RemoveShaderParameter (const String &name)
 Remove a shader parameter.
 
void SetNumOutputs (i32 num)
 Set number of output rendertargets.
 
void SetOutput (i32 index, const String &name, CubeMapFace face=FACE_POSITIVE_X)
 Set output rendertarget name and face index for cube maps.
 
void SetOutputName (i32 index, const String &name)
 Set output rendertarget name.
 
void SetOutputFace (i32 index, CubeMapFace face)
 Set output rendertarget face index for cube maps.
 
void SetDepthStencilName (const String &name)
 Set depth-stencil output name. When empty, will assign a depth-stencil buffer automatically.
 
const StringGetTextureName (TextureUnit unit) const
 Return texture resource name.
 
const VariantGetShaderParameter (const String &name) const
 Return shader parameter.
 
i32 GetNumOutputs () const
 Return number of output rendertargets.
 
const StringGetOutputName (i32 index) const
 Return output rendertarget name.
 
CubeMapFace GetOutputFace (i32 index) const
 Return output rendertarget face index.
 
const StringGetDepthStencilName () const
 Return depth-stencil output name.
 

Public Attributes

String tag_
 Tag name.
 
RenderCommandType type_ {}
 Command type.
 
RenderCommandSortMode sortMode_ {}
 Sorting mode.
 
String pass_
 Scene pass name.
 
unsigned passIndex_ {}
 Scene pass index. Filled by View.
 
String metadata_
 Command/pass metadata.
 
String vertexShaderName_
 Vertex shader name.
 
String pixelShaderName_
 Pixel shader name.
 
String vertexShaderDefines_
 Vertex shader defines.
 
String pixelShaderDefines_
 Pixel shader defines.
 
String textureNames_ [MAX_TEXTURE_UNITS]
 Textures.
 
HashMap< StringHash, VariantshaderParameters_
 Shader parameters.
 
Vector< Pair< String, CubeMapFace > > outputs_
 Output rendertarget names and faces.
 
String depthStencilName_
 Depth-stencil output name.
 
ClearTargetFlags clearFlags_ {}
 Clear flags. Affects clear command only.
 
Color clearColor_
 Clear color. Affects clear command only.
 
float clearDepth_ {}
 Clear depth. Affects clear command only.
 
unsigned clearStencil_ {}
 Clear stencil value. Affects clear command only.
 
BlendMode blendMode_ {BLEND_REPLACE}
 Blend mode. Affects quad command only.
 
bool enabled_ {true}
 Enabled flag.
 
bool useFogColor_ {}
 Use fog color for clearing.
 
bool markToStencil_ {}
 Mark to stencil flag.
 
bool useLitBase_ {true}
 Use lit base pass optimization for forward per-pixel lights.
 
bool vertexLights_ {}
 Vertex lights flag.
 
String eventName_
 Event name.
 

Detailed Description

Rendering path command.


The documentation for this struct was generated from the following files: