Skip to content

Commit

Permalink
GRMtlTextureInfo should have readonly getters
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Apr 14, 2024
1 parent 0a5739a commit 8942d3d
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
Expand Up @@ -84,7 +84,7 @@ public GRMtlTextureInfo (IntPtr textureHandle)
}

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

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

0 comments on commit 8942d3d

Please sign in to comment.