1234567891011121314 |
- using System;
- using System.Runtime.InteropServices;
- using static Veldrid.MetalBindings.ObjectiveCRuntime;
- namespace Veldrid.MetalBindings
- {
- [StructLayout(LayoutKind.Sequential)]
- public struct CAMetalDrawable
- {
- public readonly IntPtr NativePtr;
- public bool IsNull => NativePtr == IntPtr.Zero;
- public MTLTexture texture => objc_msgSend<MTLTexture>(NativePtr, Selectors.texture);
- }
- }
|