Skip to content

Commit

Permalink
GRMtlTextureInfo should have readonly getters (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Apr 14, 2024
1 parent 0a5739a commit bef2eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/SkiaSharp/GRDefinitions.cs
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ public GRMtlTextureInfo (IntPtr textureHandle)
}

public IntPtr TextureHandle {
get => _textureHandle;
readonly get => _textureHandle;
set {
_textureHandle = value;
#if __IOS__ || __MACOS__
@@ -101,7 +101,7 @@ public GRMtlTextureInfo (Metal.IMTLTexture texture)
}

public Metal.IMTLTexture Texture {
get => _texture;
readonly get => _texture;
set {
_texture = value;
_textureHandle = _texture.Handle;

0 comments on commit bef2eab

Please sign in to comment.