1234567891011121314151617181920212223 |
- using System;
- using static Veldrid.MetalBindings.ObjectiveCRuntime;
- namespace Veldrid.MetalBindings
- {
- public struct MTLPipelineBufferDescriptorArray
- {
- public readonly IntPtr NativePtr;
- public MTLPipelineBufferDescriptor this[uint index]
- {
- get
- {
- IntPtr value = IntPtr_objc_msgSend(NativePtr, Selectors.objectAtIndexedSubscript, (UIntPtr)index);
- return new MTLPipelineBufferDescriptor(value);
- }
- set
- {
- objc_msgSend(NativePtr, Selectors.setObjectAtIndexedSubscript, value.NativePtr, (UIntPtr)index);
- }
- }
- }
- }
|