@@ -129,7 +129,7 @@ public Argb32(uint packed)
129129 public uint Argb
130130 {
131131 [ MethodImpl ( InliningOptions . ShortMethod ) ]
132- readonly get => Unsafe . As < Argb32 , uint > ( ref Unsafe . AsRef ( this ) ) ;
132+ get => Unsafe . As < Argb32 , uint > ( ref this ) ;
133133
134134 [ MethodImpl ( InliningOptions . ShortMethod ) ]
135135 set => Unsafe . As < Argb32 , uint > ( ref this ) = value;
@@ -138,10 +138,7 @@ public uint Argb
138138 /// <inheritdoc/>
139139 public uint PackedValue
140140 {
141- [ MethodImpl ( InliningOptions . ShortMethod ) ]
142- readonly get => this . Argb ;
143-
144- [ MethodImpl ( InliningOptions . ShortMethod ) ]
141+ get => this . Argb ;
145142 set => this . Argb = value ;
146143 }
147144
@@ -184,23 +181,23 @@ public uint PackedValue
184181 public static bool operator != ( Argb32 left , Argb32 right ) => ! left . Equals ( right ) ;
185182
186183 /// <inheritdoc />
187- public readonly PixelOperations < Argb32 > CreatePixelOperations ( ) => new PixelOperations ( ) ;
184+ public PixelOperations < Argb32 > CreatePixelOperations ( ) => new PixelOperations ( ) ;
188185
189186 /// <inheritdoc/>
190187 [ MethodImpl ( InliningOptions . ShortMethod ) ]
191188 public void FromScaledVector4 ( Vector4 vector ) => this . FromVector4 ( vector ) ;
192189
193190 /// <inheritdoc/>
194191 [ MethodImpl ( InliningOptions . ShortMethod ) ]
195- public readonly Vector4 ToScaledVector4 ( ) => this . ToVector4 ( ) ;
192+ public Vector4 ToScaledVector4 ( ) => this . ToVector4 ( ) ;
196193
197194 /// <inheritdoc/>
198195 [ MethodImpl ( InliningOptions . ShortMethod ) ]
199196 public void FromVector4 ( Vector4 vector ) => this . Pack ( ref vector ) ;
200197
201198 /// <inheritdoc/>
202199 [ MethodImpl ( InliningOptions . ShortMethod ) ]
203- public readonly Vector4 ToVector4 ( ) => new Vector4 ( this . R , this . G , this . B , this . A ) / MaxBytes ;
200+ public Vector4 ToVector4 ( ) => new Vector4 ( this . R , this . G , this . B , this . A ) / MaxBytes ;
204201
205202 /// <inheritdoc/>
206203 [ MethodImpl ( InliningOptions . ShortMethod ) ]
@@ -323,21 +320,21 @@ public void FromRgba64(Rgba64 source)
323320 }
324321
325322 /// <inheritdoc/>
326- public override readonly bool Equals ( object obj ) => obj is Argb32 argb32 && this . Equals ( argb32 ) ;
323+ public override bool Equals ( object obj ) => obj is Argb32 argb32 && this . Equals ( argb32 ) ;
327324
328325 /// <inheritdoc/>
329326 [ MethodImpl ( InliningOptions . ShortMethod ) ]
330- public readonly bool Equals ( Argb32 other ) => this . Argb == other . Argb ;
327+ public bool Equals ( Argb32 other ) => this . Argb == other . Argb ;
331328
332329 /// <summary>
333330 /// Gets a string representation of the packed vector.
334331 /// </summary>
335332 /// <returns>A string representation of the packed vector.</returns>
336- public override readonly string ToString ( ) => $ "Argb({ this . A } , { this . R } , { this . G } , { this . B } )";
333+ public override string ToString ( ) => $ "Argb({ this . A } , { this . R } , { this . G } , { this . B } )";
337334
338335 /// <inheritdoc/>
339336 [ MethodImpl ( InliningOptions . ShortMethod ) ]
340- public override readonly int GetHashCode ( ) => this . Argb . GetHashCode ( ) ;
337+ public override int GetHashCode ( ) => this . Argb . GetHashCode ( ) ;
341338
342339 /// <summary>
343340 /// Packs the four floats into a color.
0 commit comments