Add AnimatedComputeShaderPanel control
このコミットが含まれているのは:
1 親
22d429d101
コミット
d11f524ade
7ファイル変更
+258
-50
検索条件に一致するファイルはありません
@@ -19,8 +19,13 @@ namespace ComputeSharp.WinUI;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A custom <see cref="SwapChainPanel"/> that can be used to render animated backgrounds.
|
||||
/// It is powered by ComputeSharp and leverages compute shaders to create frames to display.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This panel accepts a custom <see cref="IFrameRequestQueue"/> instance to customize frame requests.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public sealed partial class ComputeShaderPanel : SwapChainPanel
|
||||
{
|
||||
@@ -56,9 +61,10 @@ public sealed partial class ComputeShaderPanel : SwapChainPanel
|
||||
this.swapChainManager.QueueResolutionScaleChange(ResolutionScale);
|
||||
this.swapChainManager.QueueDynamicResolutionModeChange(IsDynamicResolutionEnabled);
|
||||
|
||||
if (ShaderRunner is IShaderRunner shaderRunner)
|
||||
if (FrameRequestQueue is IFrameRequestQueue frameRequestQueue &&
|
||||
ShaderRunner is IShaderRunner shaderRunner)
|
||||
{
|
||||
this.swapChainManager.StartRenderLoop(FrameRequestQueue, shaderRunner);
|
||||
this.swapChainManager.StartRenderLoop(frameRequestQueue, shaderRunner);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする