public void Execute(Action <ISubset> drawAction, ISubset ipmxSubset) { if (string.IsNullOrWhiteSpace(ScriptRuntime.ScriptCode)) { Pass.Apply(context.DeviceManager.Context); drawAction(ipmxSubset); } else//スクリプトが存在する場合は処理をスクリプトランタイムに任せる { ScriptRuntime.Execute(drawAction, ipmxSubset); } }
public void ExecuteTechnique(DeviceContext context, Action <ISubset> drawAction, ISubset ipmxSubset) { if (string.IsNullOrWhiteSpace(ScriptRuntime.ScriptCode)) { foreach (MMEEffectPass pass in Passes.Values) { pass.Pass.Apply(context); drawAction(ipmxSubset); } } else//スクリプトが存在する場合は処理をスクリプトランタイムに任せる { ScriptRuntime.Execute(drawAction, ipmxSubset); } }