Urho.Pass Class

Material rendering pass, which defines shaders and render state.

See Also: Pass

Syntax

public class Pass : RefCounted

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Pass are listed below.

See Also: RefCounted

Public Constructors

Constructs a new instance of Urho.Pass, given a raw pointer to an unmanaged object

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

AlphaToCoverageBoolean. Return alpha-to-coverage mode. Or Set alpha-to-coverage on/off.
BlendModeBlendMode. Return blend mode. Or Set blend mode.
CullModeCullMode. Return culling mode override. If pass is not overriding culling mode (default), the illegal mode MAX_CULLMODES is returned. Or Set culling mode override. By default culling mode is read from the material instead. Set the illegal culling mode MAX_CULLMODES to disable override again.
DepthTestModeCompareMode. Return depth compare mode. Or Set depth compare mode.
DepthWriteBoolean. Return depth write mode. Or Set depth write on/off.
[read-only]
DesktopBoolean. Return whether requires desktop level hardware.
[read-only]
EffectivePixelShaderDefinesString. Return the effective pixel shader defines, accounting for excludes. Called internally by Renderer.
[read-only]
EffectiveVertexShaderDefinesString. Return the effective vertex shader defines, accounting for excludes. Called internally by Renderer.
[read-only]
IndexUInt32. Return pass index. This is used for optimal render-time pass queries that avoid map lookups.
LightingModePassLightingMode. Return pass lighting mode. Or Set pass lighting mode, affects what shader variations will be attempted to be loaded.
[read-only]
NameString. Return pass name.
PixelShaderString. Return pixel shader name. Or Set pixel shader name.
PixelShaderDefineExcludesString. Return pixel shader define excludes. Or Set pixel shader define excludes. Use to mark defines that the shader code will not recognize, to prevent compiling redundant shader variations.
PixelShaderDefinesString. Return pixel shader defines. Or Set pixel shader defines.
[read-only]
ShadersLoadedFrameNumberUInt32. Return last shaders loaded frame number.
VertexShaderString. Return vertex shader name. Or Set vertex shader name.
VertexShaderDefineExcludesString. Return vertex shader define excludes. Or Set vertex shader define excludes. Use to mark defines that the shader code will not recognize, to prevent compiling redundant shader variations.
VertexShaderDefinesString. Return vertex shader defines. Or Set vertex shader defines.

Public Methods

MarkShadersLoaded(UInt32)
Mark shaders loaded this frame.
ReleaseShaders()
Reset shader pointers.
SetIsDesktop(Boolean)
Set whether requires desktop level hardware.