You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on visualizing voltage distribution in a WinUI 3 app. Currently, I'm using AnimatedComputeShaderPanel of ComputeSharp v2.0.3, but I'd like to migrate to ComputeShaderPanel since the calculation at each pixel coordinate isn't actually time-dependent.
My first question is whether ComputeShaderPanel is suitable for static visualization tasks. If so, I would like to know whether it can help reduce the GPU load.
Here's the code snippet using AnimatedComputeShaderPanel:
[EmbeddedBytecode(DispatchAxis.XY)][AutoConstructor]publicreadonlypartialstructHeatmap:IPixelShader<float4>{[AutoConstructor]publicreadonlypartialstructSettings{publicreadonlyBoolisDarkTheme;publicreadonlyBoolrenderingAxisLines;// other properties...}// other settings and private methods...publicfloat4Execute(){// Shader execution logic...}));
When attempting to switch to ComputeShaderPanel in XAML, however, I encountered no rendering result.
Could you guide me on how to accomplish this task? Thank you.
The text was updated successfully, but these errors were encountered:
I'm currently working on visualizing voltage distribution in a WinUI 3 app. Currently, I'm using
AnimatedComputeShaderPanel
ofComputeSharp v2.0.3
, but I'd like to migrate toComputeShaderPanel
since the calculation at each pixel coordinate isn't actually time-dependent.My first question is whether
ComputeShaderPanel
is suitable for static visualization tasks. If so, I would like to know whether it can help reduce the GPU load.Here's the code snippet using
AnimatedComputeShaderPanel
:And in the code-behind, I'm setting up
AnimatedComputeShaderPanel
like this:The shader
Heatmap
isWhen attempting to switch to
ComputeShaderPanel
in XAML, however, I encountered no rendering result.Could you guide me on how to accomplish this task? Thank you.
The text was updated successfully, but these errors were encountered: