Example #1
0
        protected override void SetActive()
        {
            _deviceManager.Context.InputAssembler.InputLayout = InputLayout;
            _deviceManager.Context.VertexShader.Set(VertexShader);
            _deviceManager.Context.PixelShader.Set(PixelShader);

            if (Textures != null && Textures.Count > 0)
            {
                _textureManager.Activate(0, Textures);
            }

            if (Samplers != null && Samplers.Count > 0)
            {
                _samplerManager.Activate(0, Samplers);
            }
        }