Exemplo n.º 1
0
        public static VkSparseBufferMemoryBindInfo.Raw *MarshalIndirect(this VkSparseBufferMemoryBindInfo s, ref byte *unmanaged)
        {
            var result = (VkSparseBufferMemoryBindInfo.Raw *)unmanaged;

            unmanaged += VkSparseBufferMemoryBindInfo.Raw.SizeInBytes;
            *result = s.MarshalDirect(ref unmanaged);
            return(result);
        }
Exemplo n.º 2
0
        public static VkSparseBufferMemoryBindInfo.Raw MarshalDirect(this VkSparseBufferMemoryBindInfo s, ref byte *unmanaged)
        {
            var pBinds = s.Binds.MarshalDirect(ref unmanaged);

            VkSparseBufferMemoryBindInfo.Raw result;
            result.buffer    = s.Buffer?.Handle ?? VkBuffer.HandleType.Null;
            result.bindCount = s.Binds?.Count ?? 0;
            result.pBinds    = pBinds;
            return(result);
        }
Exemplo n.º 3
0
 public static int SizeOfMarshalIndirect(this VkSparseBufferMemoryBindInfo s) =>
 s.SizeOfMarshalDirect() + VkSparseBufferMemoryBindInfo.Raw.SizeInBytes;
Exemplo n.º 4
0
 public static int SizeOfMarshalDirect(this VkSparseBufferMemoryBindInfo s)
 {
     return
         (s.Binds.SizeOfMarshalDirect());
 }