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

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

            CurrentTechnique = _techniques[0];
        }