Esempio n. 1
0
 protected override void DisposeResource()
 {
     base.DisposeResource();
     if (effect != null)
     {
         effect.Dispose();
         effect = null;
     }
 }
Esempio n. 2
0
 public Effect(PPDDevice device, byte[] bytes) : base(device)
 {
     effect            = SharpDX.Direct3D9.Effect.FromMemory((SharpDX.Direct3D9.Device)((PPDFramework.DX9.PPDDevice)device).Device, bytes, SharpDX.Direct3D9.ShaderFlags.SkipValidation);
     vertexDeclaration = VertexDeclarationFactoryManager.Factory.Create(device, this);
 }