MTLPipelineBufferDescriptorArray.cs 669 B

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