EffectInstance Class
Namespace: Stride.Rendering
Assembly: Stride.Graphics.dll
A dynamic effect instance, including its values and resources.
public class EffectInstance : DisposeBase, IDisposable, IReferencable
|
Improve this Doc
View Source
Constructors
EffectInstance(Effect, ParameterCollection)
public EffectInstance(Effect effect, ParameterCollection parameters = null)
Parameters
|
Improve this Doc
View Source
Fields
effect
Field Value
permutationCounter
protected int permutationCounter
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
Methods
Apply(GraphicsContext)
public void Apply(GraphicsContext graphicsContext)
Parameters
ChooseEffect(GraphicsDevice)
protected virtual void ChooseEffect(GraphicsDevice graphicsDevice)
Parameters
Destroy()
protected override void Destroy()
Overrides
UpdateEffect(GraphicsDevice)
Compiles or recompiles the effect if necesssary.
public bool UpdateEffect(GraphicsDevice graphicsDevice)
Parameters
Returns
Type |
Description |
System.Boolean |
True if the effect was recompiled, false otherwise.
|
Extension Methods