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

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

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

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

            VkMemoryBarrier.Raw result;
            result.sType         = VkStructureType.MemoryBarrier;
            result.pNext         = pNext;
            result.srcAccessMask = s.SrcAccessMask;
            result.dstAccessMask = s.DstAccessMask;
            return(result);
        }
Beispiel #4
0
 public static int SizeOfMarshalIndirect(this VkMemoryBarrier s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkMemoryBarrier.Raw.SizeInBytes;