Ejemplo n.º 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());
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public static int SizeOfMarshalIndirect(this VkMemoryBarrier s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkMemoryBarrier.Raw.SizeInBytes;