MTLCommandQueue.cs 679 B

12345678910111213141516171819
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using static Veldrid.MetalBindings.ObjectiveCRuntime;
  4. namespace Veldrid.MetalBindings
  5. {
  6. [StructLayout(LayoutKind.Sequential)]
  7. public struct MTLCommandQueue
  8. {
  9. public readonly IntPtr NativePtr;
  10. public MTLCommandBuffer commandBuffer() => objc_msgSend<MTLCommandBuffer>(NativePtr, sel_commandBuffer);
  11. public void insertDebugCaptureBoundary() => objc_msgSend(NativePtr, sel_insertDebugCaptureBoundary);
  12. private static readonly Selector sel_commandBuffer = "commandBuffer";
  13. private static readonly Selector sel_insertDebugCaptureBoundary = "insertDebugCaptureBoundary";
  14. }
  15. }