using CommunityToolkit.Mvvm.ComponentModel;
using ComputeSharp.SwapChain.Core.Shaders;
using ComputeSharp.WinUI;
namespace ComputeSharp.SwapChain.Core.ViewModels;
///
/// A viewmodel for a compute shader.
///
/// The name of the shader type to execute.
/// The instance to execute.
/// The instance to execute.
public sealed partial class ShaderRunnerViewModel(
string shaderType,
IShaderRunner shaderRunner,
PixelShaderEffect pixelShaderEffect) : ObservableObject
{
///
/// Gets the name of the shader type to execute.
///
public string ShaderType => shaderType;
///
/// Gets the instance to execute.
///
public IShaderRunner ShaderRunner => shaderRunner;
///
/// Gets the instance to execute.
///
public PixelShaderEffect PixelShaderEffect => pixelShaderEffect;
///
/// Gets or sets whether the current shader is selected.
///
[ObservableProperty]
private bool isSelected;
}