MTLVertexDescriptor.cs 646 B

12345678910111213141516171819
  1. using System;
  2. using static Veldrid.MetalBindings.ObjectiveCRuntime;
  3. namespace Veldrid.MetalBindings
  4. {
  5. public unsafe struct MTLVertexDescriptor
  6. {
  7. public readonly IntPtr NativePtr;
  8. public MTLVertexBufferLayoutDescriptorArray layouts
  9. => objc_msgSend<MTLVertexBufferLayoutDescriptorArray>(NativePtr, sel_layouts);
  10. public MTLVertexAttributeDescriptorArray attributes
  11. => objc_msgSend<MTLVertexAttributeDescriptorArray>(NativePtr, sel_attributes);
  12. private static readonly Selector sel_layouts = "layouts";
  13. private static readonly Selector sel_attributes = "attributes";
  14. }
  15. }