Urho.ShaderVariation Class

Vertex or pixel shader on the GPU.

See Also: ShaderVariation

Syntax

public class ShaderVariation : RefCounted

Requirements

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

The members of Urho.ShaderVariation are listed below.

See Also: RefCounted

Public Constructors

Constructs a new instance of Urho.ShaderVariation, 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

[read-only]
CompilerOutputString. Return compile error/warning string.
[read-only]
ConstantBufferSizesUInt32*. Return constant buffer data sizes.
DefinesString. Return defines. Or Set defines.
[read-only]
DefinesClipPlaneString. Return defines with the CLIPPLANE define appended. Used internally on Direct3D11 only, will be empty on other APIs.
[read-only]
ElementHashUInt64. Return vertex element hash.
[read-only]
FullNameString. Return full shader name.
NameString. Return name. Or Set name.
[read-only]
OwnerShader. Return the owner resource.
[read-only]
ShaderTypeShaderType. Return shader type.

Public Methods

Create() : Boolean
Compile the shader. Return true if successful.
HasParameter(StringHash) : Boolean
HasTextureUnit(TextureUnit) : Boolean
Release()
Release the shader.