Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Graphics.Effect Class Reference
Inheritance diagram for SiliconStudio.Paradox.Graphics.Effect:
SiliconStudio.Core.ComponentBase SiliconStudio.Core.IComponent SiliconStudio.Core.ICollectorHolder SiliconStudio.Core.IReferencable SiliconStudio.Core.IReferencable SiliconStudio.Paradox.Graphics.SimpleEffect SiliconStudio.Paradox.Physics.PhysicsDebugEffect

Public Member Functions

 Effect (GraphicsDevice device, byte[] bytecode)
 Initializes a new instance of the Effect class. More...
 
 Effect (GraphicsDevice device, EffectBytecode bytecode, ParameterCollection usedParameters=null)
 Initializes a new instance of the Effect class. More...
 
void Apply (bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, ParameterCollection paramCollection2, bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, ParameterCollection paramCollection5, bool applyEffectStates=false)
 
void Apply (ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, ParameterCollection paramCollection5, ParameterCollection paramCollection6, bool applyEffectStates=false)
 
void Apply (ParameterCollection[] parameterCollections, bool applyEffectStates=false)
 
void UnbindResources ()
 
void Apply (GraphicsDevice graphicsDevice, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, ParameterCollection paramCollection2, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, ParameterCollection paramCollection5, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection paramCollection1, ParameterCollection paramCollection2, ParameterCollection paramCollection3, ParameterCollection paramCollection4, ParameterCollection paramCollection5, ParameterCollection paramCollection6, bool applyEffectStates)
 
void Apply (GraphicsDevice graphicsDevice, ParameterCollection[] parameterCollections, bool applyEffectStates)
 
void UnbindResources (GraphicsDevice graphicsDevice)
 
bool HasParameter (ParameterKey parameterKey)
 
- Public Member Functions inherited from SiliconStudio.Core.ComponentBase
void Dispose ()
 
override string ToString ()
 

Static Public Attributes

static readonly ParameterKey
< RasterizerState
RasterizerStateKey = ParameterKeys.New<RasterizerState>()
 
static readonly ParameterKey
< DepthStencilState
DepthStencilStateKey = ParameterKeys.New<DepthStencilState>()
 
static readonly ParameterKey
< BlendState
BlendStateKey = ParameterKeys.New<BlendState>()
 

Properties

EffectInputSignature InputSignature [get]
 Gets the input signature of this effect. More...
 
ParameterCollection Parameters [get]
 Gets the parameters. More...
 
bool Changed [get, set]
 Gets a boolean indicating if the effect changed since last update. More...
 
List
< ShaderConstantBufferDescription
ConstantBuffers [get]
 
- Properties inherited from SiliconStudio.Core.ComponentBase
long Id [get, set]
 
string Name [get, set]
 Gets or sets the name of this component. More...
 
bool IsDisposed [get, set]
 Has the component been disposed or not yet. More...
 
- Properties inherited from SiliconStudio.Core.IComponent
long Id [get]
 Gets the id of this component. More...
 
string Name [get]
 Gets the name of this component. More...
 
- Properties inherited from SiliconStudio.Core.IReferencable
int ReferenceCount [get]
 Gets the reference count of this instance. More...
 
- Properties inherited from SiliconStudio.Core.ICollectorHolder
ObjectCollector Collector [get]
 Gets the collector. More...
 

Additional Inherited Members

- Public Attributes inherited from SiliconStudio.Core.ComponentBase
PropertyContainer Tags
 Gets the attached properties to this component. More...
 
- Protected Member Functions inherited from SiliconStudio.Core.ComponentBase
 ComponentBase ()
 Initializes a new instance of the ComponentBase class. More...
 
 ComponentBase (string name)
 Initializes a new instance of the ComponentBase class. More...
 
virtual void OnNameChanged ()
 Called when Name property was changed. More...
 
virtual void Destroy ()
 Disposes of object resources. More...
 

Detailed Description

Definition at line 19 of file Effect.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Graphics.Effect.Effect ( GraphicsDevice  device,
byte[]  bytecode 
)

Initializes a new instance of the Effect class.

Parameters
deviceThe device.
bytecodeThe bytecode.

Definition at line 50 of file Effect.cs.

SiliconStudio.Paradox.Graphics.Effect.Effect ( GraphicsDevice  device,
EffectBytecode  bytecode,
ParameterCollection  usedParameters = null 
)

Initializes a new instance of the Effect class.

Parameters
deviceThe device.
bytecodeThe bytecode.
usedParametersThe parameters used to create this shader (from a pdxfx).
Exceptions
System.ArgumentNullExceptiondevice or bytecode

Definition at line 66 of file Effect.cs.

Member Function Documentation

void SiliconStudio.Paradox.Graphics.Effect.Apply ( bool  applyEffectStates = false)

Definition at line 117 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
bool  applyEffectStates = false 
)

Definition at line 122 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
bool  applyEffectStates = false 
)

Definition at line 127 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
bool  applyEffectStates = false 
)

Definition at line 132 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
bool  applyEffectStates = false 
)

Definition at line 137 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
ParameterCollection  paramCollection5,
bool  applyEffectStates = false 
)

Definition at line 142 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
ParameterCollection  paramCollection5,
ParameterCollection  paramCollection6,
bool  applyEffectStates = false 
)

Definition at line 147 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( ParameterCollection[]  parameterCollections,
bool  applyEffectStates = false 
)

Definition at line 152 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
bool  applyEffectStates 
)

Definition at line 175 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
bool  applyEffectStates 
)

Definition at line 187 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
bool  applyEffectStates 
)

Definition at line 200 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
bool  applyEffectStates 
)

Definition at line 214 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
bool  applyEffectStates 
)

Definition at line 229 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
ParameterCollection  paramCollection5,
bool  applyEffectStates 
)

Definition at line 245 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection  paramCollection1,
ParameterCollection  paramCollection2,
ParameterCollection  paramCollection3,
ParameterCollection  paramCollection4,
ParameterCollection  paramCollection5,
ParameterCollection  paramCollection6,
bool  applyEffectStates 
)

Definition at line 262 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.Apply ( GraphicsDevice  graphicsDevice,
ParameterCollection[]  parameterCollections,
bool  applyEffectStates 
)

Definition at line 280 of file Effect.cs.

bool SiliconStudio.Paradox.Graphics.Effect.HasParameter ( ParameterKey  parameterKey)
void SiliconStudio.Paradox.Graphics.Effect.UnbindResources ( )

Definition at line 157 of file Effect.cs.

void SiliconStudio.Paradox.Graphics.Effect.UnbindResources ( GraphicsDevice  graphicsDevice)

Definition at line 303 of file Effect.cs.

Member Data Documentation

readonly ParameterKey<BlendState> SiliconStudio.Paradox.Graphics.Effect.BlendStateKey = ParameterKeys.New<BlendState>()
static

Definition at line 35 of file Effect.cs.

readonly ParameterKey<DepthStencilState> SiliconStudio.Paradox.Graphics.Effect.DepthStencilStateKey = ParameterKeys.New<DepthStencilState>()
static

Definition at line 34 of file Effect.cs.

readonly ParameterKey<RasterizerState> SiliconStudio.Paradox.Graphics.Effect.RasterizerStateKey = ParameterKeys.New<RasterizerState>()
static

Definition at line 33 of file Effect.cs.

Property Documentation

bool SiliconStudio.Paradox.Graphics.Effect.Changed
getset

Gets a boolean indicating if the effect changed since last update.

The changed.

Definition at line 105 of file Effect.cs.

Referenced by SiliconStudio.Paradox.Effects.DynamicEffectCompiler.Update().

List<ShaderConstantBufferDescription> SiliconStudio.Paradox.Graphics.Effect.ConstantBuffers
get

Definition at line 110 of file Effect.cs.

EffectInputSignature SiliconStudio.Paradox.Graphics.Effect.InputSignature
get

Gets the input signature of this effect.

The input signature.

Definition at line 81 of file Effect.cs.

ParameterCollection SiliconStudio.Paradox.Graphics.Effect.Parameters
get

Gets the parameters.

The parameters.

Definition at line 93 of file Effect.cs.


The documentation for this class was generated from the following file: