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

            return
                (s.Next.SizeOfMarshalIndirect());
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public static int SizeOfMarshalIndirect(this VkPipelineCacheCreateInfo s) =>
 s == null ? 0 : s.SizeOfMarshalDirect() + VkPipelineCacheCreateInfo.Raw.SizeInBytes;