Example #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);
        }
Example #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);
        }
Example #3
0
 public static int SizeOfMarshalIndirect(this VkSparseBufferMemoryBindInfo s) =>
 s.SizeOfMarshalDirect() + VkSparseBufferMemoryBindInfo.Raw.SizeInBytes;
Example #4
0
 public static int SizeOfMarshalDirect(this VkSparseBufferMemoryBindInfo s)
 {
     return
         (s.Binds.SizeOfMarshalDirect());
 }