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

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

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

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

            VkPipelineCacheCreateInfo.Raw result;
            result.sType           = VkStructureType.PipelineCacheCreateInfo;
            result.pNext           = pNext;
            result.flags           = s.Flags;
            result.initialDataSize = s.InitialDataSize;
            result.pInitialData    = s.InitialData;
            return(result);
        }
 public static int SizeOfMarshalIndirect(this VkPipelineCacheCreateInfo s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkPipelineCacheCreateInfo.Raw.SizeInBytes;