protected override void DrawCore(RenderDrawContext context) { // Make sure we keep our uniform weights in synchronization with the number of taps if (tapWeights == null || tapWeights.Length != tapCount) { tapWeights = DoFUtil.GetUniformWeightBlurArray(tapCount); } if (!useOptimizedPath) { DrawCoreNaive(context); } else { DrawCoreOptimized(context); } }
protected override void DrawCore(RenderContext context) { // Make sure we keep our uniform weights in synchronization with the number of taps if (tapWeights == null || tapWeights.Length != tapCount) { tapWeights = DoFUtil.GetUniformWeightBlurArray(tapCount); calculateRhombiOffsets(); } if (!useOptimizedPath) { DrawCoreNaive(context); } else { //TODO use MRT to speed-up the process } }