12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using static Veldrid.MetalBindings.ObjectiveCRuntime;
- namespace Veldrid.MetalBindings
- {
- public struct MTLVertexBufferLayoutDescriptor
- {
- public readonly IntPtr NativePtr;
- public MTLVertexBufferLayoutDescriptor(IntPtr ptr) => NativePtr = ptr;
- public MTLVertexStepFunction stepFunction
- {
- get => (MTLVertexStepFunction)uint_objc_msgSend(NativePtr, sel_stepFunction);
- set => objc_msgSend(NativePtr, sel_setStepFunction, (uint)value);
- }
- public UIntPtr stride
- {
- get => UIntPtr_objc_msgSend(NativePtr, sel_stride);
- set => objc_msgSend(NativePtr, sel_setStride, value);
- }
- public UIntPtr stepRate
- {
- get => UIntPtr_objc_msgSend(NativePtr, sel_stepRate);
- set => objc_msgSend(NativePtr, sel_setStepRate, value);
- }
- private static readonly Selector sel_stepFunction = "stepFunction";
- private static readonly Selector sel_setStepFunction = "setStepFunction:";
- private static readonly Selector sel_stride = "stride";
- private static readonly Selector sel_setStride = "setStride:";
- private static readonly Selector sel_stepRate = "stepRate";
- private static readonly Selector sel_setStepRate = "setStepRate:";
- }
- }
|