Sergio0694/ComputeSharp

Render will fail if zoomed in too far in ScrollViewer

Avid29 opened this issue · 0 comments

Reproduction Steps

  1. Wrap any shader in ScrollViewer with zooming enabled.
  2. Zoom in fully
  3. Observe the exception is thrown and handled, ending the render loop

Such as this:

<ScrollViewer x:Name="Scroller" ZoomMode="Enabled" HorizontalScrollBarVisibility="Visible">
    <computesharp:AnimatedComputeShaderPanel x:Name="RenderPanel" ShaderRunner="{x:Bind}"/>
</ScrollViewer>

Expected Behavior

Rendering should continue while zoomed in.

Actual Behavior

Render stops when zoomed in.

System info

This section should contain useful info such as:

  • ComputeSharp 2.0.3
  • 22621
  • i7-11700 / NVIDIA GTX 1660 Ti
  • Visual Studio 17.7.3 / net7.0-windows10.0.19041.0

Additional Info

Exception
image

StackTrace
image