public override void Dispose() { base.Dispose(); if (processor != null) { processor.Release(); processor = null; } if (shader != null) { shader.Release(); shader = null; } if (preshader != null) { preshader.Release(); preshader = null; } }