Use primary constructors in remaining projects
このコミットが含まれているのは:
1 親
46a6b25756
コミット
6897ecfcb2
14ファイル変更
+55
-174
検索条件に一致するファイルはありません
@@ -7,35 +7,28 @@ namespace ComputeSharp.SwapChain.Core.ViewModels;
|
||||
/// <summary>
|
||||
/// A viewmodel for a compute shader.
|
||||
/// </summary>
|
||||
public sealed partial class ShaderRunnerViewModel : ObservableObject
|
||||
/// <param name="shaderType">The name of the shader type to execute.</param>
|
||||
/// <param name="shaderRunner">The <see cref="IShaderRunner"/> instance to execute.</param>
|
||||
/// <param name="pixelShaderEffect">The <see cref="Shaders.PixelShaderEffect"/> instance to execute.</param>
|
||||
public sealed partial class ShaderRunnerViewModel(
|
||||
string shaderType,
|
||||
IShaderRunner shaderRunner,
|
||||
PixelShaderEffect pixelShaderEffect) : ObservableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ShaderRunnerViewModel"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="shaderType">The name of the shader type to execute.</param>
|
||||
/// <param name="shaderRunner">The <see cref="IShaderRunner"/> instance to execute.</param>
|
||||
/// <param name="pixelShaderEffect">The <see cref="Shaders.PixelShaderEffect"/> instance to execute.</param>
|
||||
public ShaderRunnerViewModel(string shaderType, IShaderRunner shaderRunner, PixelShaderEffect pixelShaderEffect)
|
||||
{
|
||||
ShaderType = shaderType;
|
||||
ShaderRunner = shaderRunner;
|
||||
PixelShaderEffect = pixelShaderEffect;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the shader type to execute.
|
||||
/// </summary>
|
||||
public string ShaderType { get; }
|
||||
public string ShaderType => shaderType;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="IShaderRunner"/> instance to execute.
|
||||
/// </summary>
|
||||
public IShaderRunner ShaderRunner { get; }
|
||||
public IShaderRunner ShaderRunner => shaderRunner;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="PixelShaderEffect"/> instance to execute.
|
||||
/// </summary>
|
||||
public PixelShaderEffect PixelShaderEffect { get; }
|
||||
public PixelShaderEffect PixelShaderEffect => pixelShaderEffect;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the current shader is selected.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする