Class EffectInstance
A dynamic effect instance, including its values and resources.
public class EffectInstance : DisposeBase, IDisposable, IReferencable
- Inheritance
-
EffectInstance
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
EffectInstance(Effect, ParameterCollection)
public EffectInstance(Effect effect, ParameterCollection parameters = null)
Parameters
effect
Effectparameters
ParameterCollection
Fields
effect
protected Effect effect
Field Value
permutationCounter
protected int permutationCounter
Field Value
Properties
DescriptorReflection
public EffectDescriptorSetReflection DescriptorReflection { get; }
Property Value
Effect
public Effect Effect { get; }
Property Value
Parameters
public ParameterCollection Parameters { get; }
Property Value
RootSignature
public RootSignature RootSignature { get; }
Property Value
Methods
Apply(GraphicsContext)
public void Apply(GraphicsContext graphicsContext)
Parameters
graphicsContext
GraphicsContext
ChooseEffect(GraphicsDevice)
protected virtual void ChooseEffect(GraphicsDevice graphicsDevice)
Parameters
graphicsDevice
GraphicsDevice
Destroy()
Disposes of object resources.
protected override void Destroy()
UpdateEffect(GraphicsDevice)
Compiles or recompiles the effect if necesssary.
public bool UpdateEffect(GraphicsDevice graphicsDevice)
Parameters
graphicsDevice
GraphicsDevice
Returns
- bool
True if the effect was recompiled, false otherwise.