示例#1
0
        public unsafe static void GetDefaultSamplePositions(this IMTLDevice This, MTLSamplePosition [] positions, nuint count)
        {
            if (positions == null)
            {
                ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(positions));
            }

            if (positions.Length < (nint)count)
            {
                throw new ArgumentException("Length of 'positions' cannot be less than 'count'.");
                fixed(void *handle = positions)
#if NET
                This.GetDefaultSamplePositions((IntPtr)handle, count);
#else
                GetDefaultSamplePositions(This, (IntPtr)handle, count);
#endif
        }