/// <inheritdoc/> protected override void InitializeCore() { base.InitializeCore(); pipelineState = new MutablePipelineState(Context.GraphicsDevice); if (EffectName == null) { throw new ArgumentNullException("No EffectName specified"); } // Setup the effect compiler EffectInstance.Initialize(Context.Services); SetDefaultParameters(); }
/// <inheritdoc/> protected override void InitializeCore() { base.InitializeCore(); pipelineState = new MutablePipelineState(Context.GraphicsDevice); pipelineState.State.SetDefaults(); pipelineState.State.InputElements = PrimitiveQuad.VertexDeclaration.CreateInputElements(); pipelineState.State.PrimitiveType = PrimitiveQuad.PrimitiveType; if (EffectName == null) { throw new ArgumentNullException("No EffectName specified"); } // Setup the effect compiler EffectInstance.Initialize(Context.Services); SetDefaultParameters(); }
/// <inheritdoc/> protected override void InitializeCore() { base.InitializeCore(); pipelineState = new MutablePipelineState(Context.GraphicsDevice); pipelineState.State.SetDefaults(); pipelineState.State.InputElements = PrimitiveQuad.VertexDeclaration.CreateInputElements(); pipelineState.State.PrimitiveType = PrimitiveQuad.PrimitiveType; if (EffectName == null) { throw new ArgumentNullException("No EffectName specified"); } // Setup the effect compiler EffectInstance.Initialize(Context.Services); // We give ImageEffectShader a higher priority, since they are usually executed serially and blocking EffectInstance.EffectCompilerParameters.TaskPriority = -1; SetDefaultParameters(); }