Example #1
0
        public static int SizeOfMarshalDirect(this VkDisplayPresentInfoKHR s)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            return
                (s.Next.SizeOfMarshalIndirect());
        }
Example #2
0
        public static VkDisplayPresentInfoKHR.Raw *MarshalIndirect(this VkDisplayPresentInfoKHR s, ref byte *unmanaged)
        {
            if (s == null)
            {
                return((VkDisplayPresentInfoKHR.Raw *) 0);
            }
            var result = (VkDisplayPresentInfoKHR.Raw *)unmanaged;

            unmanaged += VkDisplayPresentInfoKHR.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Example #3
0
        public static VkDisplayPresentInfoKHR.Raw MarshalDirect(this VkDisplayPresentInfoKHR s, ref byte *unmanaged)
        {
            if (s == null)
            {
                throw new InvalidOperationException("Trying to directly marshal a null.");
            }

            var pNext = s.Next.MarshalIndirect(ref unmanaged);

            VkDisplayPresentInfoKHR.Raw result;
            result.sType      = VkStructureType.DisplayPresentInfoKHR;
            result.pNext      = pNext;
            result.srcRect    = s.SrcRect;
            result.dstRect    = s.DstRect;
            result.persistent = new VkBool32(s.Persistent);
            return(result);
        }
Example #4
0
 public static int SizeOfMarshalIndirect(this VkDisplayPresentInfoKHR s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkDisplayPresentInfoKHR.Raw.SizeInBytes;