protected override void DisposeResource() { base.DisposeResource(); if (effect != null) { effect.Dispose(); effect = null; } }
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); }