Fix more analyzer warnings (mostly missing readonly)
このコミットが含まれているのは:
1 親
e96f217af2
コミット
0ff4d41a0a
11ファイル変更
+15
-16
検索条件に一致するファイルはありません
@@ -508,7 +508,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DRequiresScenePosition]
|
||||
[AutoConstructor]
|
||||
public partial struct Shader : ID2D1PixelShader
|
||||
public readonly partial struct Shader : ID2D1PixelShader
|
||||
{
|
||||
public readonly int kernelLength;
|
||||
|
||||
@@ -557,7 +557,7 @@ public sealed partial class BokehBlurEffect
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DRequiresScenePosition]
|
||||
[AutoConstructor]
|
||||
public partial struct Shader : ID2D1PixelShader
|
||||
public readonly partial struct Shader : ID2D1PixelShader
|
||||
{
|
||||
public readonly int kernelLength;
|
||||
private readonly float z;
|
||||
|
||||
@@ -5,10 +5,10 @@ namespace ComputeSharp.D2D1.Tests.Effects;
|
||||
[D2DRequiresScenePosition]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader40)]
|
||||
[AutoConstructor]
|
||||
public partial struct PixelateEffect : ID2D1PixelShader
|
||||
public readonly partial struct PixelateEffect : ID2D1PixelShader
|
||||
{
|
||||
[AutoConstructor]
|
||||
public partial struct Constants
|
||||
public readonly partial struct Constants
|
||||
{
|
||||
public readonly int inputWidth;
|
||||
public readonly int inputHeight;
|
||||
|
||||
@@ -133,7 +133,7 @@ public partial class DeviceDisposalTests
|
||||
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
[AutoConstructor]
|
||||
private partial struct InitializeShader : IComputeShader
|
||||
private readonly partial struct InitializeShader : IComputeShader
|
||||
{
|
||||
private readonly ReadWriteBuffer<float> buffer;
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする