ホストとDirect2Dからの呼び出し口で例外を報告する
・想定していない例外を開発者へ自動で報告する機能を追加-A
このコミットが含まれているのは:
3ファイル変更
+53
-4
検索条件に一致するファイルはありません
@@ -33,7 +33,18 @@ internal sealed class InkDispersionCustomEffect(IGraphicsDevicesAndContext devic
|
||||
|
||||
protected override void UpdateConstants()
|
||||
{
|
||||
drawInformation?.SetPixelShaderConstantBuffer(_cb);
|
||||
if (drawInformation is null)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
drawInformation.SetPixelShaderConstantBuffer(_cb);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public override void MapInputRectsToOutputRect(
|
||||
|
||||
@@ -90,7 +90,17 @@ public sealed class InkDispersionEffect : VideoEffectBase
|
||||
public override IEnumerable<string> CreateExoVideoFilters(int keyFrameIndex, ExoOutputDescription exoOutputDescription) => [];
|
||||
|
||||
public override IVideoEffectProcessor CreateVideoEffect(IGraphicsDevicesAndContext devices)
|
||||
=> new InkDispersionEffectProcessor(devices, this);
|
||||
{
|
||||
try
|
||||
{
|
||||
return new InkDispersionEffectProcessor(devices, this);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
protected override IEnumerable<IAnimatable> GetAnimatables()
|
||||
=> _animatables ??= [Amount, Spread, Water, Reach, Fiber, Sizing, Viscosity, Drying, Density, Grain];
|
||||
|
||||
@@ -41,6 +41,19 @@ internal sealed class InkDispersionEffectProcessor : VideoEffectProcessorBase
|
||||
}
|
||||
|
||||
public override DrawDescription Update(EffectDescription effectDescription)
|
||||
{
|
||||
try
|
||||
{
|
||||
return UpdateCore(effectDescription);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private DrawDescription UpdateCore(EffectDescription effectDescription)
|
||||
{
|
||||
if (IsPassThroughEffect || _effect is null || _outputCrop is null || _outputTransform is null || _outputTransformOutput is null || _resourceSet is null || _interopProvider is null || _pipeline is null || input is null)
|
||||
return effectDescription.DrawDescription;
|
||||
@@ -290,8 +303,9 @@ internal sealed class InkDispersionEffectProcessor : VideoEffectProcessorBase
|
||||
_resourceSet = InkDispersionResourceSet.Create(interopDevice, _interopDomain);
|
||||
_pipeline = InkDispersionPipeline.TryCreate(interopDevice);
|
||||
}
|
||||
catch
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
ReleaseInterop();
|
||||
throw;
|
||||
}
|
||||
@@ -339,8 +353,9 @@ internal sealed class InkDispersionEffectProcessor : VideoEffectProcessorBase
|
||||
disposer.Collect(output);
|
||||
return output;
|
||||
}
|
||||
catch
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
output?.Dispose();
|
||||
outputTransformOutput?.Dispose();
|
||||
outputTransform?.Dispose();
|
||||
@@ -360,6 +375,19 @@ internal sealed class InkDispersionEffectProcessor : VideoEffectProcessorBase
|
||||
}
|
||||
|
||||
protected override void ClearEffectChain()
|
||||
{
|
||||
try
|
||||
{
|
||||
ClearEffectChainCore();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
InkDispersionTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
private void ClearEffectChainCore()
|
||||
{
|
||||
_effect?.SetInput(0, null, true);
|
||||
_effect?.SetInput(1, null, true);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする