/// <summary>
        ///
        /// </summary>
        internal static unsafe DisplayPlaneProperties2 MarshalFrom(SharpVk.Interop.Khronos.DisplayPlaneProperties2 *pointer)
        {
            DisplayPlaneProperties2 result = default(DisplayPlaneProperties2);

            result.DisplayPlaneProperties = SharpVk.Khronos.DisplayPlaneProperties.MarshalFrom(&pointer->DisplayPlaneProperties);
            return(result);
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="extendedHandle">
 /// The PhysicalDevice handle to extend.
 /// </param>
 public static unsafe SharpVk.Khronos.DisplayPlaneProperties2[] GetDisplayPlaneProperties2(this SharpVk.PhysicalDevice extendedHandle)
 {
     try
     {
         SharpVk.Khronos.DisplayPlaneProperties2[] result = default(SharpVk.Khronos.DisplayPlaneProperties2[]);
         uint         marshalledPropertyCount             = default(uint);
         CommandCache commandCache = default(CommandCache);
         SharpVk.Interop.Khronos.DisplayPlaneProperties2 *marshalledProperties = default(SharpVk.Interop.Khronos.DisplayPlaneProperties2 *);
         commandCache = extendedHandle.commandCache;
         SharpVk.Interop.Khronos.VkPhysicalDeviceGetDisplayPlaneProperties2Delegate commandDelegate = commandCache.Cache.vkGetPhysicalDeviceDisplayPlaneProperties2KHR;
         Result methodResult = commandDelegate(extendedHandle.handle, &marshalledPropertyCount, marshalledProperties);
         if (SharpVkException.IsError(methodResult))
         {
             throw SharpVkException.Create(methodResult);
         }
         marshalledProperties = (SharpVk.Interop.Khronos.DisplayPlaneProperties2 *)(Interop.HeapUtil.Allocate <SharpVk.Interop.Khronos.DisplayPlaneProperties2>((uint)(marshalledPropertyCount)));
         commandDelegate(extendedHandle.handle, &marshalledPropertyCount, marshalledProperties);
         if (marshalledProperties != null)
         {
             var fieldPointer = new SharpVk.Khronos.DisplayPlaneProperties2[(uint)(marshalledPropertyCount)];
             for (int index = 0; index < (uint)(marshalledPropertyCount); index++)
             {
                 fieldPointer[index] = SharpVk.Khronos.DisplayPlaneProperties2.MarshalFrom(&marshalledProperties[index]);
             }
             result = fieldPointer;
         }
         else
         {
             result = null;
         }
         return(result);
     }
     finally
     {
         Interop.HeapUtil.FreeAll();
     }
 }