Esempio n. 1
0
        public static VkPresentRegionKHR.Raw *MarshalIndirect(this VkPresentRegionKHR s, ref byte *unmanaged)
        {
            var result = (VkPresentRegionKHR.Raw *)unmanaged;

            unmanaged += VkPresentRegionKHR.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Esempio n. 2
0
        public static VkPresentRegionKHR.Raw MarshalDirect(this VkPresentRegionKHR s, ref byte *unmanaged)
        {
            var pRectangles = s.Rectangles.MarshalDirect(ref unmanaged);

            VkPresentRegionKHR.Raw result;
            result.rectangleCount = s.Rectangles?.Count ?? 0;
            result.pRectangles    = pRectangles;
            return(result);
        }
Esempio n. 3
0
 public static int SizeOfMarshalIndirect(this VkPresentRegionKHR s) =>
 s.SizeOfMarshalDirect() + VkPresentRegionKHR.Raw.SizeInBytes;
Esempio n. 4
0
 public static int SizeOfMarshalDirect(this VkPresentRegionKHR s)
 {
     return
         (s.Rectangles.SizeOfMarshalDirect());
 }