Exemple #1
0
        private void Initialize()
        {
            Effect      = Effect.FromMemory(Context, _effectData, ShaderFlags.None);
            _techniques = new ShaderTechniqueCollection(Context, this);
            _parameters = new ShaderParameterCollection(this);

            CurrentTechnique = _techniques[0];
        }
Exemple #2
0
        private void Initialize()
        {
            Effect = Effect.FromMemory(Context, _effectData, ShaderFlags.None);
            _techniques = new ShaderTechniqueCollection(Context, this);
            _parameters = new ShaderParameterCollection(this);

            CurrentTechnique = _techniques[0];
        }