Detailed Description

Represents a family of shaders. Globally cached to minimise memory usage.

Public Member Functions

Shader GetShader (int flags)
 Gets a particular variant of this shader. More...
 

Static Public Member Functions

static ShaderSet Get (string name)
 Gets a shader set by name. More...
 

Public Attributes

string Name
 The name of this shader set. More...
 

Static Public Attributes

static Dictionary< string,
ShaderSet
GlobalCache
 The cache of shader sets. More...
 

Properties

static ShaderSet Standard [get]
 The standard shader set. More...
 
Shader Isolated [get]
 Gets the isolated shader. More...
 

Private Member Functions

 ShaderSet (string name)
 Creates the shader set for the given family name. More...
 

Private Attributes

Shader CachedIsolated
 The isolated shader. More...
 

Static Private Attributes

static ShaderSet CachedStandard
 The standard shader set. Use Standard instead. More...
 

Constructor & Destructor Documentation

PowerUI.ShaderSet.ShaderSet ( string  name)
inlineprivate

Creates the shader set for the given family name.

Member Function Documentation

static ShaderSet PowerUI.ShaderSet.Get ( string  name)
inlinestatic

Gets a shader set by name.

Shader PowerUI.ShaderSet.GetShader ( int  flags)
inline

Gets a particular variant of this shader.

Member Data Documentation

Shader PowerUI.ShaderSet.CachedIsolated
private

The isolated shader.

ShaderSet PowerUI.ShaderSet.CachedStandard
staticprivate

The standard shader set. Use Standard instead.

Dictionary<string,ShaderSet> PowerUI.ShaderSet.GlobalCache
static

The cache of shader sets.

string PowerUI.ShaderSet.Name

The name of this shader set.

Property Documentation

Shader PowerUI.ShaderSet.Isolated
get

Gets the isolated shader.

ShaderSet PowerUI.ShaderSet.Standard
staticget

The standard shader set.