Пример #1
0
        /// <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();
        }
Пример #2
0
        /// <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();
        }
Пример #3
0
        /// <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();
        }