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