MTLVertexBufferLayoutDescriptorArray.cs 622 B

1234567891011121314151617181920
  1. using System;
  2. using static Veldrid.MetalBindings.ObjectiveCRuntime;
  3. namespace Veldrid.MetalBindings
  4. {
  5. public struct MTLVertexBufferLayoutDescriptorArray
  6. {
  7. public readonly IntPtr NativePtr;
  8. public MTLVertexBufferLayoutDescriptor this[uint index]
  9. {
  10. get
  11. {
  12. IntPtr value = IntPtr_objc_msgSend(NativePtr, Selectors.objectAtIndexedSubscript, index);
  13. return new MTLVertexBufferLayoutDescriptor(value);
  14. }
  15. set => objc_msgSend(NativePtr, Selectors.setObjectAtIndexedSubscript, value.NativePtr, index);
  16. }
  17. }
  18. }